]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove now unused dptr_closepath().
authorJeremy Allison <jra@samba.org>
Tue, 16 Jul 2019 16:41:39 +0000 (09:41 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 6 Aug 2019 14:23:34 +0000 (14:23 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c
source3/smbd/proto.h

index 252468d9caa21b3ae44a70fea7e6de0a38c30f0f..5af0629e7d7192e13ef146e80e926ea63bbefef4 100644 (file)
@@ -310,23 +310,6 @@ bool dptr_activecnum(const struct smbd_server_connection *sconn,
        return false;
 }
 
-/****************************************************************************
- Close a dptr that matches a given path, only if it matches the spid also.
-****************************************************************************/
-
-void dptr_closepath(struct smbd_server_connection *sconn,
-                   char *path,uint16_t spid)
-{
-       struct dptr_struct *dptr, *next;
-       for(dptr = sconn->searches.dirptrs; dptr; dptr = next) {
-               next = dptr->next;
-               if (spid == dptr->spid &&
-                               strequal(dptr->smb_dname->base_name,path)) {
-                       dptr_close_internal(dptr);
-               }
-       }
-}
-
 /****************************************************************************
  Create a new dir ptr. If the flag old_handle is true then we must allocate
  from the bitmap range 0 - 255 as old SMBsearch directory handles are only
index 9e1675204bbd7aa32241981817cbe92a5f7ee906..252122cdf70d7ac3979e6ae95993eccc0a6e9732 100644 (file)
@@ -188,8 +188,6 @@ void dptr_close(struct smbd_server_connection *sconn, int *key);
 void dptr_closecnum(connection_struct *conn);
 bool dptr_activecnum(const struct smbd_server_connection *sconn,
                        const struct connection_struct *conn);
-void dptr_closepath(struct smbd_server_connection *sconn,
-                   char *path,uint16_t spid);
 NTSTATUS dptr_create(connection_struct *conn,
                struct smb_request *req,
                files_struct *fsp,