]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Add "enum file_close_type close_type" parameter to file_close_conn().
authorJeremy Allison <jra@samba.org>
Wed, 17 Aug 2022 18:39:36 +0000 (11:39 -0700)
committerNoel Power <npower@samba.org>
Thu, 18 Aug 2022 13:07:34 +0000 (13:07 +0000)
Not yet used.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15128

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/smbd/files.c
source3/smbd/proto.h
source3/smbd/smb2_service.c

index a6c41f2b9280de866945555bfcdb100527e41601..fb9454b015d01aeee7d6c38b86e895a75796ed60 100644 (file)
@@ -1339,7 +1339,7 @@ static struct files_struct *file_close_conn_fn(
        return NULL;
 }
 
-void file_close_conn(connection_struct *conn)
+void file_close_conn(connection_struct *conn, enum file_close_type close_type)
 {
        struct file_close_conn_state state = { .conn = conn };
 
index b8d0a5240610fddf182f37129147a9ba0660f723..c4a330145151e560dd43f6d0c17b1cac48edd70d 100644 (file)
@@ -383,7 +383,7 @@ void fsp_set_gen_id(files_struct *fsp);
 NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
                  files_struct **result);
 NTSTATUS fsp_bind_smb(struct files_struct *fsp, struct smb_request *req);
-void file_close_conn(connection_struct *conn);
+void file_close_conn(connection_struct *conn, enum file_close_type close_type);
 bool file_init_global(void);
 bool file_init(struct smbd_server_connection *sconn);
 void file_close_user(struct smbd_server_connection *sconn, uint64_t vuid);
index 4aa09c966c5d0a07d749d878241508123602abec..5affea6b3e4267e370a57e786ed437705989b1e0 100644 (file)
@@ -941,7 +941,7 @@ void close_cnum(connection_struct *conn,
        const struct loadparm_substitution *lp_sub =
                loadparm_s3_global_substitution();
 
-       file_close_conn(conn);
+       file_close_conn(conn, close_type);
 
        change_to_root_user();