]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use metadata_fsp() in get_acl_group_bits()
authorRalph Boehme <slow@samba.org>
Wed, 27 Jul 2022 17:05:26 +0000 (19:05 +0200)
committerJule Anger <janger@samba.org>
Tue, 6 Sep 2022 06:32:13 +0000 (06:32 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15126
MR: https://gitlab.com/samba-team/samba/-/merge_requests/2643

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(backported from commit 06555c6bcb5644fc9eea35b3cbae8d8801c65ab6)
[slow@samba.org: metadata_fsp(fsp) -> metadata_fsp(smb_fname->fsp)]

source3/smbd/posix_acls.c

index 899e7dc3c1e2f7293dd2015bb672b1b271d2cea3..a3c3408a743a8c4441ad0c6f44d8c2c2cbb9bebf 100644 (file)
@@ -3848,7 +3848,7 @@ int get_acl_group_bits( connection_struct *conn,
        SMB_ACL_T posix_acl;
        int result = -1;
 
-       posix_acl = SMB_VFS_SYS_ACL_GET_FD(smb_fname->fsp,
+       posix_acl = SMB_VFS_SYS_ACL_GET_FD(metadata_fsp(smb_fname->fsp),
                                           SMB_ACL_TYPE_ACCESS,
                                           talloc_tos());
        if (posix_acl == (SMB_ACL_T)NULL)