]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
libadacl.c: remove unused acl_get_permset() call in acl_set_entry().
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 28 Feb 2018 22:17:59 +0000 (17:17 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 28 Feb 2018 22:17:59 +0000 (17:17 -0500)
src/libadacl.c

index 130da4c4b505408ced5eb67132a6e4a2b4dfddf2..7874c4ccdae8f647b2694644958085ced3dcb877 100644 (file)
@@ -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;