Working towards exclusion of user defined absolute paths and leaf patterns

This commit is contained in:
2008-05-02 20:50:40 +00:00
parent f0b1cbddf3
commit 97c22f86a4
5 changed files with 589 additions and 92 deletions

View File

@ -1638,7 +1638,12 @@ cannot_open_dir:;
{ret= -1; goto ex;}
}
/* >>> compare exclusions against disk_path resp. name */;
/* compare exclusions against disk_path resp. name */
ret= Xorriso_path_is_excluded(xorriso, disk_path, 0);
if(ret<0)
{ret= -1; goto ex;}
if(ret>0)
continue;
strcpy(img_name, name);
if(Xorriso_much_too_long(xorriso, strlen(img_path), 0)<=0)
@ -1901,9 +1906,11 @@ int Xorriso_graft_in(struct XorrisO *xorriso, void *boss_iter,
struct stat stbuf;
/* >>> compare exclusions against disk_path resp. name
but no leaf patter if flag&4 */;
/* compare exclusions against disk_path resp. name */
/* >>> ??? why not !(flag&4) ? : "but no leaf patter if flag&4 */;
ret= Xorriso_path_is_excluded(xorriso, disk_path, 0);
if(ret!=0)
return(ret);
for(cpt= img_path; 1; cpt++) {
cpt= strstr(cpt,"/.");