Corrected ugly message with -update_r and root directory
This commit is contained in:
@ -1329,6 +1329,7 @@ int Xorriso_node_from_path(struct XorrisO *xorriso, IsoImage *volume,
|
||||
@param flag bit0= do not produce problem events (unless faulty path format)
|
||||
bit1= work purely literally, do not use libisofs
|
||||
bit2= (with bit1) this is an address in the disk world
|
||||
bit3= return root directory as "/" and not as ""
|
||||
@return -1 = faulty path format, 0 = not found ,
|
||||
1 = found simple node , 2 = found directory
|
||||
*/
|
||||
@ -1342,8 +1343,11 @@ int Xorriso_normalize_img_path(struct XorrisO *xorriso, char *wd,
|
||||
char path[SfileadrL], *apt, *npt, sfe[5*SfileadrL], *cpt;
|
||||
|
||||
eff_path[0]= 0;
|
||||
if(img_path[0]==0)
|
||||
if(img_path[0]==0) {
|
||||
if(flag&8)
|
||||
strcpy(eff_path, "/");
|
||||
return(2); /* root directory */
|
||||
}
|
||||
|
||||
if(!(flag&2)) {
|
||||
ret= Xorriso_get_volume(xorriso, &volume, 0);
|
||||
@ -1367,8 +1371,11 @@ int Xorriso_normalize_img_path(struct XorrisO *xorriso, char *wd,
|
||||
img_path);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, errno, "FATAL", 0);
|
||||
return(-1);
|
||||
} else if(path[1]==0)
|
||||
} else if(path[1]==0) {
|
||||
if(flag&8)
|
||||
strcpy(eff_path, "/");
|
||||
return(2); /* root directory */
|
||||
}
|
||||
|
||||
for(npt= apt; !done; apt= npt+1) {
|
||||
npt= strchr(apt, '/');
|
||||
|
Reference in New Issue
Block a user