]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In get_acl_group_bits(), SMB_VFS_SYS_ACL_GET_FILE() -> SMB_VFS_SYS_ACL_GET_...
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 20:15:57 +0000 (13:15 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/posix_acls.c

index 388e471363badcfec90b5fea6a3d82673dfd910c..9a17a59822730e35082e65da5da0e7c2ba3c27f3 100644 (file)
@@ -3980,8 +3980,9 @@ int get_acl_group_bits( connection_struct *conn,
        SMB_ACL_T posix_acl;
        int result = -1;
 
-       posix_acl = SMB_VFS_SYS_ACL_GET_FILE(conn, smb_fname,
-                                            SMB_ACL_TYPE_ACCESS, talloc_tos());
+       posix_acl = SMB_VFS_SYS_ACL_GET_FD(smb_fname->fsp,
+                                          SMB_ACL_TYPE_ACCESS,
+                                          talloc_tos());
        if (posix_acl == (SMB_ACL_T)NULL)
                return -1;