1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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 <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]
This commit is contained in:
Jeremy Allison 2022-08-17 11:39:36 -07:00 committed by Jule Anger
parent 706c64c6f0
commit a5cf33d404
3 changed files with 3 additions and 3 deletions

View 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 };

View 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);

View 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();