diff options
author | Jeremy Allison <jra@samba.org> | 2020-03-12 11:02:19 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-04-07 08:12:36 +0000 |
commit | 680157b533808b3a09f31e703805c830e6d63349 (patch) | |
tree | bfdcad1dd3b4fa89c52707b70cbc938c0ca0434d | |
parent | 824bc7f7f5b8ce13e82a79d75b2550e239f60445 (diff) | |
download | samba-680157b533808b3a09f31e703805c830e6d63349.tar.gz |
s3: smbd: Remove file_close_pid().
The old synchronous reply_exit() was the only user.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 584933439c70af3d2fd047e62a3456c1c2eca45e)
-rw-r--r-- | source3/smbd/files.c | 17 | ||||
-rw-r--r-- | source3/smbd/proto.h | 2 |
2 files changed, 0 insertions, 19 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index b06511147ab..a982c0a5980 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -189,23 +189,6 @@ void file_close_conn(connection_struct *conn) } /**************************************************************************** - Close all open files for a pid and a vuid. -****************************************************************************/ - -void file_close_pid(struct smbd_server_connection *sconn, uint16_t smbpid, - uint64_t vuid) -{ - files_struct *fsp, *next; - - for (fsp=sconn->files;fsp;fsp=next) { - next = fsp->next; - if ((fsp->file_pid == smbpid) && (fsp->vuid == vuid)) { - close_file(NULL, fsp, SHUTDOWN_CLOSE); - } - } -} - -/**************************************************************************** Initialise file structures. ****************************************************************************/ diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 96d574023a5..911fe6dad3c 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -379,8 +379,6 @@ void fsp_set_gen_id(files_struct *fsp); NTSTATUS file_new(struct smb_request *req, connection_struct *conn, files_struct **result); void file_close_conn(connection_struct *conn); -void file_close_pid(struct smbd_server_connection *sconn, uint16_t smbpid, - uint64_t vuid); 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); |