X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=blobdiff_plain;f=src%2Flibadacl.c;h=7874c4ccdae8f647b2694644958085ced3dcb877;hp=130da4c4b505408ced5eb67132a6e4a2b4dfddf2;hb=c0096b2149b8ce9493a0a1c30689b3fd9dd7036a;hpb=fe3136fef03f7fb1ddaa47d2bc0d0bc8307f3022 diff --git a/src/libadacl.c b/src/libadacl.c index 130da4c..7874c4c 100644 --- a/src/libadacl.c +++ b/src/libadacl.c @@ -256,12 +256,6 @@ int acl_set_entry(acl_t* aclp, acl_entry_t entry) { been wiped. These three are guaranteed to exist, so if we match one of them, we're allowed to return ACL_SUCCESS below and bypass the rest of the function. */ - acl_permset_t existing_permset; - if (acl_get_permset(existing_entry, &existing_permset) == ACL_ERROR) { - perror("acl_set_entry (acl_get_permset)"); - return ACL_ERROR; - } - if (acl_set_permset(existing_entry, entry_permset) == ACL_ERROR) { perror("acl_set_entry (acl_set_permset)"); return ACL_ERROR;