Bug fixes with option -mv

This commit is contained in:
2007-10-27 23:04:35 +00:00
parent 47978aad19
commit e2229d066b
4 changed files with 16 additions and 6 deletions

View File

@ -432,6 +432,7 @@ int Xorriso_get_volume(struct XorrisO *xorriso, struct iso_volume **volume,
Must provide at least SfileadrL bytes of storage.
@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
@return -1 = faulty path format, 0 = not found ,
1 = found simple node , 2 = found directory
*/
@ -451,7 +452,10 @@ int Xorriso_normalize_img_path(struct XorrisO *xorriso, char *img_path,
}
if(img_path[0]!='/') {
strcpy(path, xorriso->wdi);
if(flag&4)
strcpy(path, xorriso->wdx);
else
strcpy(path, xorriso->wdi);
ret= Sfile_add_to_path(path, img_path, 0);
if(ret<=0)
goto much_too_long;
@ -1433,7 +1437,7 @@ int Xorriso_rename(struct XorrisO *xorriso,
return(ret);
dest_dir= (struct iso_tree_node_dir *)
iso_tree_volume_path_to_node(volume,dir_adr);
strcpy(dir_adr, eff_dest);
strcpy(dir_adr, origin);
cpt= strrchr(dir_adr, '/');
if(cpt==NULL)
cpt= dir_adr+strlen(dir_adr);