From 24d75b92d0839626cd11797e4458494b7a9d6fb2 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 30 Oct 2020 22:00:17 +0100 Subject: [PATCH] smbd: pass fsp to smb_set_file_dosmode() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/trans2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.47.3