Got rid of superfluous acl_clear_perms() call that Antti Tapaninen
[rsync/rsync.git] / lib / sysacls.c
index ac4909d..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);
 }
@@ -538,7 +537,7 @@ SMB_ACL_T sys_acl_get_fd(int fd)
 
 int sys_acl_get_access_bits(SMB_ACL_ENTRY_T entry_d, uint32 *bits)
 {
-       *bits = &entry_d->a_perm;
+       *bits = entry_d->a_perm;
        return 0;
 }
 
@@ -1021,7 +1020,7 @@ SMB_ACL_T sys_acl_get_fd(int fd)
 
 int sys_acl_get_access_bits(SMB_ACL_ENTRY_T entry_d, uint32 *bits)
 {
-       *bits = &entry_d->a_perm;
+       *bits = entry_d->a_perm;
 
        return 0;
 }