From: Ralph Boehme Date: Fri, 30 Oct 2020 21:00:17 +0000 (+0100) Subject: smbd: pass fsp to smb_set_file_dosmode() X-Git-Tag: samba-4.14.0rc1~270 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24d75b92d0839626cd11797e4458494b7a9d6fb2;p=thirdparty%2Fsamba.git smbd: pass fsp to smb_set_file_dosmode() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index e1d88c92ea1..64b8f1711e1 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -6632,6 +6632,7 @@ NTSTATUS smb_set_file_time(connection_struct *conn, ****************************************************************************/ static NTSTATUS smb_set_file_dosmode(connection_struct *conn, + struct files_struct *fsp, struct smb_filename *smb_fname, uint32_t dosmode) { @@ -7855,7 +7856,7 @@ static NTSTATUS smb_set_file_basic_info(connection_struct *conn, /* Set the attributes */ dosmode = IVAL(pdata,32); - status = smb_set_file_dosmode(conn, smb_fname, dosmode); + status = smb_set_file_dosmode(conn, fsp, smb_fname, dosmode); if (!NT_STATUS_IS_OK(status)) { return status; }