Bug fix: -find test -has_xattr matched "isofs." attributes in -xattr mode "any"

This commit is contained in:
2023-01-10 19:03:10 +01:00
parent 3afa1d5191
commit c310e2abc1
5 changed files with 93 additions and 86 deletions

View File

@ -837,7 +837,17 @@ int Xorriso_getfattr(struct XorrisO *xorriso, void *in_node, char *path,
if(ret <= 0)
goto ex;
if(flag & 64) {
ret= (num_attrs > 0);
if(flag & 16) {
ret= 0;
for(i= 0; i < (int) num_attrs; i++) {
if(strncmp(names[i], "isofs.", 6) != 0) {
ret= 1;
break;
}
}
} else {
ret= (num_attrs > 0);
}
goto ex;
}
if(num_attrs == 0)