Bug fixes and enhancements about "default" ACL

This commit is contained in:
Thomas Schmitt 2009-01-28 11:48:04 +00:00
parent d048fc4710
commit 0e70724dc2
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2009.01.28.074917" #define Xorriso_timestamP "2009.01.28.114755"

View File

@ -8833,8 +8833,11 @@ int Xorriso_getfacl(struct XorrisO *xorriso, void *in_node, char *path,
#ifdef Xorriso_with_aaiP #ifdef Xorriso_with_aaiP
ret= iso_node_get_acl_text(node, &text, 0); ret= iso_node_get_acl_text(node, &text, 0);
d_ret= 0;
if(ret > 0 && LIBISO_ISDIR(node)) { if(ret > 0 && LIBISO_ISDIR(node)) {
d_ret= iso_node_get_acl_text(node, &d_text, 1 | 16); d_ret= iso_node_get_acl_text(node, &d_text, 1 | 16);
if(d_ret > 0 && d_text == 0)
d_ret= 0;
} }
#else #else
ret= d_ret= 0; ret= d_ret= 0;
@ -8852,7 +8855,7 @@ int Xorriso_getfacl(struct XorrisO *xorriso, void *in_node, char *path,
ret= 1 + (ret != 1); ret= 1 + (ret != 1);
goto ex; goto ex;
} }
if(ret == 0 || ret == 2) { if((ret == 0 || ret == 2) && (d_ret == 0 || d_ret == 2)) {
if(flag & 1) { if(flag & 1) {
ret= 1 + (ret == 0); ret= 1 + (ret == 0);
goto ex; goto ex;