Bug fixes with option -mv
This commit is contained in:
parent
fe6174cbc2
commit
0724b37e6e
@ -3134,7 +3134,7 @@ int Xorriso_option_add(struct XorrisO *xorriso, int argc, char **argv,
|
|||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
return(ret);
|
return(ret);
|
||||||
strcpy(target, eff_path);
|
strcpy(target, eff_path);
|
||||||
ret= Xorriso_normalize_img_path(xorriso, source, eff_path, 2);
|
ret= Xorriso_normalize_img_path(xorriso, source, eff_path, 2|4);
|
||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
return(ret);
|
return(ret);
|
||||||
strcpy(source, eff_path);
|
strcpy(source, eff_path);
|
||||||
@ -3335,7 +3335,7 @@ int Xorriso_option_cdx(struct XorrisO *xorriso, char *disk_path, int flag)
|
|||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret= Xorriso_normalize_img_path(xorriso, path, eff_path, 2);
|
ret= Xorriso_normalize_img_path(xorriso, path, eff_path, 2|4);
|
||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
return(ret);
|
return(ret);
|
||||||
if(eff_path[0]) {
|
if(eff_path[0]) {
|
||||||
@ -4115,7 +4115,7 @@ int Xorriso_option_mvi(struct XorrisO *xorriso, int argc, char **argv,
|
|||||||
|
|
||||||
/* Check existence of old addresses */
|
/* Check existence of old addresses */
|
||||||
for(i= *idx; i<end_idx-1; i++) {
|
for(i= *idx; i<end_idx-1; i++) {
|
||||||
ret= Xorriso_normalize_img_path(xorriso, argv[i], eff_origin, 1);
|
ret= Xorriso_normalize_img_path(xorriso, argv[i], eff_origin, 0);
|
||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
{ret= 0; goto ex;}
|
{ret= 0; goto ex;}
|
||||||
}
|
}
|
||||||
@ -4133,6 +4133,11 @@ int Xorriso_option_mvi(struct XorrisO *xorriso, int argc, char **argv,
|
|||||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||||
{ret= 0; goto ex;}
|
{ret= 0; goto ex;}
|
||||||
}
|
}
|
||||||
|
if(ret==0) { /* compute complete eff_dest */
|
||||||
|
ret= Xorriso_normalize_img_path(xorriso, argv[end_idx-1], eff_dest, 2);
|
||||||
|
if(ret<0)
|
||||||
|
{ret= 0; goto ex;}
|
||||||
|
}
|
||||||
/* Perform movements */
|
/* Perform movements */
|
||||||
for(i= *idx; i<end_idx-1; i++) {
|
for(i= *idx; i<end_idx-1; i++) {
|
||||||
ret= Xorriso_normalize_img_path(xorriso, argv[i], eff_origin, 1);
|
ret= Xorriso_normalize_img_path(xorriso, argv[i], eff_origin, 1);
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2007.10.27.224148"
|
#define Xorriso_timestamP "2007.10.27.230512"
|
||||||
|
@ -432,6 +432,7 @@ int Xorriso_get_volume(struct XorrisO *xorriso, struct iso_volume **volume,
|
|||||||
Must provide at least SfileadrL bytes of storage.
|
Must provide at least SfileadrL bytes of storage.
|
||||||
@param flag bit0= do not produce problem events (unless faulty path format)
|
@param flag bit0= do not produce problem events (unless faulty path format)
|
||||||
bit1= work purely literally, do not use libisofs
|
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 ,
|
@return -1 = faulty path format, 0 = not found ,
|
||||||
1 = found simple node , 2 = found directory
|
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]!='/') {
|
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);
|
ret= Sfile_add_to_path(path, img_path, 0);
|
||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
goto much_too_long;
|
goto much_too_long;
|
||||||
@ -1433,7 +1437,7 @@ int Xorriso_rename(struct XorrisO *xorriso,
|
|||||||
return(ret);
|
return(ret);
|
||||||
dest_dir= (struct iso_tree_node_dir *)
|
dest_dir= (struct iso_tree_node_dir *)
|
||||||
iso_tree_volume_path_to_node(volume,dir_adr);
|
iso_tree_volume_path_to_node(volume,dir_adr);
|
||||||
strcpy(dir_adr, eff_dest);
|
strcpy(dir_adr, origin);
|
||||||
cpt= strrchr(dir_adr, '/');
|
cpt= strrchr(dir_adr, '/');
|
||||||
if(cpt==NULL)
|
if(cpt==NULL)
|
||||||
cpt= dir_adr+strlen(dir_adr);
|
cpt= dir_adr+strlen(dir_adr);
|
||||||
|
@ -62,6 +62,7 @@ int Xorriso_ls(struct XorrisO *xorriso, int flag);
|
|||||||
Must provide at least SfileadrL bytes of storage.
|
Must provide at least SfileadrL bytes of storage.
|
||||||
@param flag bit0= do not produce problem events (unless faulty path format)
|
@param flag bit0= do not produce problem events (unless faulty path format)
|
||||||
bit1= work purely literally, do not use libisofs
|
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 ,
|
@return -1 = faulty path format, 0 = not found ,
|
||||||
1 = found simple node , 2 = found directory
|
1 = found simple node , 2 = found directory
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user