]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In smb_query_posix_acl(), remove a use of SMB_VFS_SYS_ACL_GET_FILE().
authorJeremy Allison <jra@samba.org>
Mon, 24 May 2021 22:44:29 +0000 (15:44 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
We can now use SMB_VFS_SYS_ACL_GET_FD() on the directory fsp instead.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/trans2.c

index 0692cdcb4e221fb27cd3bb812f05ab6fbe0f0139..983bd48c61549e1ff6a90da91708336503d560c8 100644 (file)
@@ -5018,8 +5018,7 @@ static NTSTATUS smb_query_posix_acl(connection_struct *conn,
                        status = NT_STATUS_INVALID_HANDLE;
                        goto out;
                }
-               def_acl = SMB_VFS_SYS_ACL_GET_FILE(conn,
-                                       fsp->fsp_name,
+               def_acl = SMB_VFS_SYS_ACL_GET_FD(fsp,
                                        SMB_ACL_TYPE_DEFAULT,
                                        talloc_tos());
                def_acl = free_empty_sys_acl(conn, def_acl);