1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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 <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(backported from commit 06555c6bcb)
[slow@samba.org: metadata_fsp(fsp) -> metadata_fsp(smb_fname->fsp)]
This commit is contained in:
Ralph Boehme 2022-07-27 19:05:26 +02:00 committed by Jule Anger
parent 8d0581a8ab
commit 2ae309348a

View 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)