From: Ralph Boehme Date: Wed, 27 Jul 2022 17:05:26 +0000 (+0200) Subject: smbd: use metadata_fsp() in get_acl_group_bits() X-Git-Tag: samba-4.15.10~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fb876b34b2cd280e70d6f13785d29a83be11f76;p=thirdparty%2Fsamba.git smbd: use metadata_fsp() in get_acl_group_bits() 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 Reviewed-by: Volker Lendecke (backported from commit 06555c6bcb5644fc9eea35b3cbae8d8801c65ab6) [slow@samba.org: metadata_fsp(fsp) -> metadata_fsp(smb_fname->fsp)] --- diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 899e7dc3c1e..a3c3408a743 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -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)