From 7005a6354df5522d9f665fb30052c458dfc93124 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 17 Aug 2022 11:39:36 -0700 Subject: [PATCH] s3: smbd: Add "enum file_close_type close_type" parameter to file_close_conn(). Not yet used. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15128 Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- source3/smbd/files.c | 2 +- source3/smbd/proto.h | 2 +- source3/smbd/smb2_service.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/files.c b/source3/smbd/files.c index a6c41f2b928..fb9454b015d 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -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 }; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index b8d0a524061..c4a33014515 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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); diff --git a/source3/smbd/smb2_service.c b/source3/smbd/smb2_service.c index 4aa09c966c5..5affea6b3e4 100644 --- a/source3/smbd/smb2_service.c +++ b/source3/smbd/smb2_service.c @@ -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(); -- 2.11.4.GIT