smbd: pass fsp to smb_set_file_dosmode()
authorRalph Boehme <slow@samba.org>
Fri, 30 Oct 2020 21:00:17 +0000 (22:00 +0100)
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/trans2.c

index e1d88c92ea1ae9c3dedebfa3d3b344814d1b23f2..64b8f1711e106e5a099ed367957acc72df7343c5 100644 (file)
@@ -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;
        }