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)
committerVolker Lendecke <vl@samba.org>
Wed, 10 Aug 2022 15:32:35 +0000 (15: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>
source3/smbd/posix_acls.c

index 62e399ba2fbd9c827c7c7c0c1001bc073042ffcf..8cef0fee02423c088ca99e2fbff6caf409abfe84 100644 (file)
@@ -3844,7 +3844,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(fsp,
+       posix_acl = SMB_VFS_SYS_ACL_GET_FD(metadata_fsp(fsp),
                                           SMB_ACL_TYPE_ACCESS,
                                           talloc_tos());
        if (posix_acl == (SMB_ACL_T)NULL)