Fixed a problem with directing an -extract to the / directory of disk
This commit is contained in:
parent
7827017886
commit
3caf75ca35
@ -1679,10 +1679,13 @@ int Xorriso_make_restore_path(struct XorrisO *xorriso,
|
|||||||
}
|
}
|
||||||
if(strlen(dpfx) + strlen(img_path) - li + 1 >= SfileadrL)
|
if(strlen(dpfx) + strlen(img_path) - li + 1 >= SfileadrL)
|
||||||
return(-1);
|
return(-1);
|
||||||
if(img_path[li]=='/')
|
if(img_path[li]=='/') {
|
||||||
sprintf(disk_path, "%s/%s", dpfx, img_path + li + 1);
|
if(dpfx[0] == '/' && dpfx[1] == 0)
|
||||||
else
|
sprintf(disk_path, "/%s", img_path + li + 1);
|
||||||
strcpy(disk_path, dpfx);
|
else
|
||||||
|
sprintf(disk_path, "%s/%s", dpfx, img_path + li + 1);
|
||||||
|
} else
|
||||||
|
strcpy(disk_path, dpfx); /* img_path[li] is 0, img_path equals ipfx */
|
||||||
found_s= s;
|
found_s= s;
|
||||||
found_d= d;
|
found_d= d;
|
||||||
if(s != *img_prefixes || !(flag & 1))
|
if(s != *img_prefixes || !(flag & 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user