]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove file_close_pid().
authorJeremy Allison <jra@samba.org>
Thu, 12 Mar 2020 18:02:19 +0000 (11:02 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 18:03:30 +0000 (18:03 +0000)
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>
source3/smbd/files.c
source3/smbd/proto.h

index b06511147ab4f0a5781e34f91bb47083d4b97a64..a982c0a598063897c076481d7dd5b59b4afe46a3 100644 (file)
@@ -188,23 +188,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.
 ****************************************************************************/
index 199f8544e01cb1d77b05e04b8c029982b56c7c2f..0f773c06225ae49148aa59eda43bee5ffeaa4672 100644 (file)
@@ -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);