mirror of
https://github.com/samba-team/samba.git
synced 2025-02-09 09:57:48 +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:
parent
706c64c6f0
commit
a5cf33d404
@ -833,7 +833,7 @@ static struct files_struct *file_close_conn_fn(
|
|||||||
return NULL;
|
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 };
|
struct file_close_conn_state state = { .conn = conn };
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ void fsp_set_gen_id(files_struct *fsp);
|
|||||||
NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
|
NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
|
||||||
files_struct **result);
|
files_struct **result);
|
||||||
NTSTATUS fsp_bind_smb(struct files_struct *fsp, struct smb_request *req);
|
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_global(void);
|
||||||
bool file_init(struct smbd_server_connection *sconn);
|
bool file_init(struct smbd_server_connection *sconn);
|
||||||
void file_close_user(struct smbd_server_connection *sconn, uint64_t vuid);
|
void file_close_user(struct smbd_server_connection *sconn, uint64_t vuid);
|
||||||
|
@ -1120,7 +1120,7 @@ void close_cnum(connection_struct *conn,
|
|||||||
const struct loadparm_substitution *lp_sub =
|
const struct loadparm_substitution *lp_sub =
|
||||||
loadparm_s3_global_substitution();
|
loadparm_s3_global_substitution();
|
||||||
|
|
||||||
file_close_conn(conn);
|
file_close_conn(conn, close_type);
|
||||||
|
|
||||||
change_to_root_user();
|
change_to_root_user();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user