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)
committerJule Anger <janger@samba.org>
Tue, 23 Aug 2022 07:45:16 +0000 (07:45 +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>
(cherry picked from commit 7005a6354df5522d9f665fb30052c458dfc93124)
[npower@samba.org Adjusted for 4.15 filename change
         smb2-service.c -> service.c]

source3/smbd/files.c
source3/smbd/proto.h
source3/smbd/service.c

index 704d3d843160dab93324a53698fe33e40a431804..7996d62bc91474145645b2256a820460341d9cfa 100644 (file)
@@ -833,7 +833,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 b3397f29f32df1f7993458119eb0dbad15ac3272..d702014786155bb2eb9697d9536a333da324bd12 100644 (file)
@@ -394,7 +394,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 b07239cc6fea0b803ca891b5b4c229f924a772ba..d4dc81bf986abdb6f97f583bed73e70c57761e92 100644 (file)
@@ -1120,7 +1120,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();