Bug fix: -pathspecs "on" did not properly handle "\\="

This commit is contained in:
2015-12-09 16:23:12 +00:00
parent bafcf288f9
commit 8877bf1417
4 changed files with 8 additions and 9 deletions

View File

@ -1108,9 +1108,8 @@ int Hex_to_bin(char *hex,
#ifndef Xorriso_fileliste_externaL
/* ??? ts A71006 : Is this compatible with mkisofs pathspecs ?
I dimly remember so */
/* @param flag bit0= pathspec mode "on" rather than "as_mkisofs"
*/
int Fileliste__target_source_limit(char *line, char sep, char **limit_pt,
int flag)
{
@ -1118,7 +1117,7 @@ int Fileliste__target_source_limit(char *line, char sep, char **limit_pt,
for(npt= line;*npt!=0;npt++) {
if(*npt=='\\') {
if(*(npt+1)!=0)
if(*(npt + 1) == '=' || (*(npt + 1) == '\\' && !(flag & 1)))
npt++;
continue;
}