After the initial acl_get_permset, the permset is alreadying pointing to
the ACL entry and all changes are done on the ACL entry. There is no
need to overwrite the permissions in the ACL entry again with the same
value in the acl_set_permset call.
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Fri Jul 17 18:33:41 UTC 2020 on sn-devel-184
((ret = acl_add_perm(permset, ACL_EXECUTE)) != 0)) {
return ret;
}
- return acl_set_permset(entry, permset);
+
+ return 0;
}
static acl_t smb_acl_to_posix(const struct smb_acl_t *acl)