Bug fix: -as mkisofs without -graft-points could noy handle names with "="

This commit is contained in:
2012-03-22 08:49:33 +00:00
parent 2029d364a4
commit 1ddd7df3e5
4 changed files with 36 additions and 5 deletions

View File

@ -1686,9 +1686,16 @@ is_pathspec_2:;
pathspec[0]= '/';
pathspec[1]= 0;
ret= Sfile_leafname(eff_path, pathspec+1, 0);
if(ret>0)
if(ret>0) {
ret= Fileliste__escape_source_path(pathspec, SfileadrL, 0);
if(ret <= 0) {
Xorriso_msgs_submit(xorriso, 0,
"Escaped leaf name gets much too long",
0, "FAILURE", 0);
goto problem_handler_2;
}
strcat(pathspec, "=");
else
} else
pathspec[0]= 0;
}
strcat(pathspec, eff_path);