summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--WHATSNEW.txt1
-rw-r--r--source/smbd/posix_acls.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 97595daa173..7cb8628add7 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -38,6 +38,7 @@ o Jeremy Allison <jra@samba.org>
FindFirst/FindNext info level of 0x104.
* BUG 2501: Stop Win98 from looping doing FindNext on a
singleton directory.
+ * BUG 2521: Fix error in access checks when user group ACLs.
o Gerald (Jerry) Carter <jerry@samba.org>
diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c
index c5f96db85c1..c5fa035c69c 100644
--- a/source/smbd/posix_acls.c
+++ b/source/smbd/posix_acls.c
@@ -3840,7 +3840,7 @@ static int check_posix_acl_group_write(connection_struct *conn, const char *dnam
}
}
break;
- case SMB_ACL_MASK:
+ case SMB_ACL_GROUP:
{
gid_t *pgid = (gid_t *)SMB_VFS_SYS_ACL_GET_QUALIFIER(conn, entry);
if (pgid == NULL) {