voided to have dead code ifndef Libisofs_with_aaip_acL. Coverity CID 12593.

This commit is contained in:
Thomas Schmitt 2015-10-10 22:01:05 +02:00
parent a16d4a28f4
commit 4c1c1ea152

View File

@ -542,12 +542,10 @@ int aaip_set_attr_list(char *path, size_t num_attrs, char **names,
has_default_acl= (ret == 2); has_default_acl= (ret == 2);
#ifdef Libisofs_with_aaip_acL #ifdef Libisofs_with_aaip_acL
ret= aaip_set_acl_text(path, acl_text, flag & 32); ret= aaip_set_acl_text(path, acl_text, flag & 32);
if(ret <= 0) if(ret <= 0)
{ret= -3; goto ex;} {ret= -3; goto ex;}
#else
{ret= -7; goto ex;}
#endif
/* "default" ACL */ /* "default" ACL */
if(has_default_acl) { if(has_default_acl) {
free(acl_text); free(acl_text);
@ -582,6 +580,13 @@ int aaip_set_attr_list(char *path, size_t num_attrs, char **names,
} }
} }
ret= 1; ret= 1;
#else
ret= -7;
#endif /* !Libisofs_with_aaip_acL */
ex:; ex:;
if(acl_text != NULL) if(acl_text != NULL)
free(acl_text); free(acl_text);