From de2167668eaff6b896b4f2e255f37b8755aa3fba Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 16 Jul 2019 09:41:39 -0700 Subject: [PATCH] s3: smbd: Remove now unused dptr_closepath(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/dir.c | 17 ----------------- source3/smbd/proto.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 252468d9caa..5af0629e7d7 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -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 diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 9e1675204bb..252122cdf70 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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, -- 2.47.3