]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: directory_has_default_posix_acl(), SMB_VFS_SYS_ACL_GET_FILE() -> SMB_VFS_SY...
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 20:20:22 +0000 (13:20 -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 9a17a59822730e35082e65da5da0e7c2ba3c27f3..75efc48cee17a568c827bdaa93e3f4bf33923fcd 100644 (file)
@@ -4117,7 +4117,7 @@ static int copy_access_posix_acl(connection_struct *conn,
 static bool directory_has_default_posix_acl(connection_struct *conn,
                        const struct smb_filename *smb_fname)
 {
-       SMB_ACL_T def_acl = SMB_VFS_SYS_ACL_GET_FILE(conn, smb_fname,
+       SMB_ACL_T def_acl = SMB_VFS_SYS_ACL_GET_FD(smb_fname->fsp,
                                                     SMB_ACL_TYPE_DEFAULT,
                                                     talloc_tos());
        bool has_acl = False;