Fixed bugs about -mv /im/age . -cdx / -cpr di/sk im/age -- -cpr di/sk . --

This commit is contained in:
Thomas Schmitt 2008-02-10 12:21:05 +00:00
parent 3378d048f6
commit 484189d7d3
4 changed files with 13 additions and 4 deletions

View File

@ -2,7 +2,7 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH XORRISO 1 "February 8, 2008"
.TH XORRISO 1 "February 10, 2008"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
@ -456,7 +456,11 @@ If other file types collide then the setting of command
decides.
.br
Renaming of files has similar collision handling, but directories can only
be replaced, not merged.
be replaced, not merged. Directories can hardly collide on renaming because
of the shell-like behavior of -mv: if a file object hits an existing directory
then it gets inserted rather than trying to replace that directory.
Nevertheless, the overwriting rules apply if an operation of xorriso
ever attempts to do such a replacement.
.PP
The commands in this section alter the ISO image and not the local filesystem.
.TP

View File

@ -4391,6 +4391,8 @@ int Xorriso_expand_disk_pattern(struct XorrisO *xorriso,
abs_adr= 4;
} else {
strcpy(dir_adr, xorriso->wdx);
if(dir_adr[0]==0)
strcpy(dir_adr, "/");
ret= Sfile_type(dir_adr, 1|4);
if(ret!=2) {
sprintf(xorriso->info_text,

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.02.09.100750"
#define Xorriso_timestamP "2008.02.10.122020"

View File

@ -1052,8 +1052,10 @@ int Xorriso_normalize_img_path(struct XorrisO *xorriso, char *wd,
break;
continue;
}
if(strcmp(apt,".")==0)
if(strcmp(apt,".")==0) {
is_dir= 1;
continue;
}
if(strcmp(apt,"..")==0) {
if(!(flag&2)) {
node= (IsoNode *) dir;
@ -1072,6 +1074,7 @@ bonked_root:;
if(cpt==NULL) /* ??? if not flag&2 then this is a bug */
goto bonked_root;
*cpt= 0;
is_dir= 1;
continue;
}
ret= Sfile_add_to_path(eff_path, apt, 0);