From c0096b2149b8ce9493a0a1c30689b3fd9dd7036a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 28 Feb 2018 17:17:59 -0500 Subject: [PATCH] libadacl.c: remove unused acl_get_permset() call in acl_set_entry(). --- src/libadacl.c | 6 ------ 1 file changed, 6 deletions(-) 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; -- 2.44.2