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

This commit is contained in:
2008-02-10 12:21:05 +00:00
parent aad9b77c93
commit 9cbd3423c2
4 changed files with 13 additions and 4 deletions

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);