Corrections about restoring of directories
This commit is contained in:
@ -2836,7 +2836,7 @@ int Xorriso_handle_collision(struct XorrisO *xorriso,
|
||||
} else {
|
||||
target_is_dir= S_ISDIR(target_stbuf.st_mode);
|
||||
}
|
||||
if(target_is_dir && (!target_is_link) && !(flag&2)) {
|
||||
if(target_is_dir && (!target_is_link) && !(flag&1)) {
|
||||
strcpy(xorriso->info_text, "Attempt to replace DISK directory ");
|
||||
Text_shellsafe(nominal_disk_path,
|
||||
xorriso->info_text+strlen(xorriso->info_text), 0);
|
||||
@ -2962,7 +2962,7 @@ much_too_long:;
|
||||
name= img_path+strlen(img_path);
|
||||
if(Sfile_str(disk_path, disk_dir_path, 0)<=0)
|
||||
goto much_too_long;
|
||||
if(disk_path[0] || disk_path[strlen(disk_path)-1]!='/')
|
||||
if(disk_path[0]==0 || disk_path[strlen(disk_path)-1]!='/')
|
||||
strcat(disk_path,"/");
|
||||
disk_name= disk_path+strlen(disk_path);
|
||||
|
||||
|
Reference in New Issue
Block a user