]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use SMB_VFS_FGET_DOS_ATTRIBUTES() in open_file_ntcreate()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 19:36:33 +0000 (21:36 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:32 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 3ec2eb5f3b9471904ab5f0d8a3d78aacaf479d67..8e1c456382f890ebbdc9a50a54a57429fee24d01 100644 (file)
@@ -3636,7 +3636,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
                         */
                        uint32_t attr = 0;
 
-                       status = SMB_VFS_GET_DOS_ATTRIBUTES(conn, smb_fname, &attr);
+                       status = SMB_VFS_FGET_DOS_ATTRIBUTES(conn, smb_fname->fsp, &attr);
                        if (NT_STATUS_IS_OK(status)) {
                                existing_dos_attributes = attr;
                        }