Got rid of superfluous acl_clear_perms() call that Antti Tapaninen
authorWayne Davison <wayned@samba.org>
Fri, 25 May 2007 14:16:57 +0000 (14:16 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 25 May 2007 14:16:57 +0000 (14:16 +0000)
pointed out.

lib/sysacls.c

index b57d9d0..b2215d0 100644 (file)
@@ -279,7 +279,6 @@ int sys_acl_set_access_bits(SMB_ACL_ENTRY_T entry, uint32 bits)
        int rc;
        if ((rc = acl_get_permset(entry, &permset)) != 0)
                return rc;
-       acl_clear_perms(permset);
        *permset = bits & 7;
        return acl_set_permset(entry, permset);
 }