From: Ralph Boehme Date: Mon, 19 Oct 2020 19:36:33 +0000 (+0200) Subject: smbd: use SMB_VFS_FGET_DOS_ATTRIBUTES() in open_file_ntcreate() X-Git-Tag: samba-4.14.0rc1~263 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f5a28d6c1cb564653092c085d51c846ba852183;p=thirdparty%2Fsamba.git smbd: use SMB_VFS_FGET_DOS_ATTRIBUTES() in open_file_ntcreate() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 3ec2eb5f3b9..8e1c456382f 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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; }