]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove now unused OpenDir().
authorJeremy Allison <jra@samba.org>
Mon, 28 Feb 2022 22:30:27 +0000 (14:30 -0800)
committerVolker Lendecke <vl@samba.org>
Wed, 2 Mar 2022 21:04:34 +0000 (21:04 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/dir.c
source3/smbd/proto.h

index c9cc6b73e584b30d967ed1e6c7b0f1d9569830df..1fca65cc30d4818b141e0a1fef38b96390063190 100644 (file)
@@ -1511,25 +1511,6 @@ NTSTATUS OpenDir_ntstatus(TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-struct smb_Dir *OpenDir(TALLOC_CTX *mem_ctx,
-                       connection_struct *conn,
-                       const struct smb_filename *smb_dname,
-                       const char *mask,
-                       uint32_t attr)
-{
-       struct smb_Dir *dir_hnd = NULL;
-       NTSTATUS status;
-
-       status = OpenDir_ntstatus(
-               mem_ctx, conn, smb_dname, mask, attr, &dir_hnd);
-       if (!NT_STATUS_IS_OK(status)) {
-               /* Ensure we return the actual error from status in errno. */
-               errno = map_errno_from_nt_status(status);
-               return NULL;
-       }
-
-       return dir_hnd;
-}
 /*******************************************************************
  Open a directory from an fsp.
 ********************************************************************/
index 6ca5e125aaf6583b92e5582ce3a6e86fb3972a51..2c97a7f822f4446bf3398e7349aefafeac143df9 100644 (file)
@@ -237,11 +237,6 @@ NTSTATUS OpenDir_ntstatus(TALLOC_CTX *mem_ctx,
                          const char *mask,
                          uint32_t attr,
                          struct smb_Dir **_dir_hnd);
-struct smb_Dir *OpenDir(TALLOC_CTX *mem_ctx,
-                       connection_struct *conn,
-                       const struct smb_filename *smb_fname,
-                       const char *mask,
-                       uint32_t attr);
 const char *ReadDirName(struct smb_Dir *dir_hnd, long *poffset,
                        SMB_STRUCT_STAT *sbuf, char **talloced);
 void RewindDir(struct smb_Dir *dir_hnd, long *poffset);