From 785c65e875a58707dacadd493ec26665467d9259 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 2 Aug 2011 16:25:22 -0700 Subject: We don't need check_name() here. All possible paths to dptr_create() have already called check_name. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Aug 3 03:00:55 CEST 2011 on sn-devel-104 --- source3/smbd/dir.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index fc74eea76c..e7c17de1f6 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -447,10 +447,6 @@ NTSTATUS dptr_create(connection_struct *conn, files_struct *fsp, if (fsp) { dir_hnd = OpenDir_fsp(NULL, conn, fsp, wcard, attr); } else { - status = check_name(conn,path); - if (!NT_STATUS_IS_OK(status)) { - return status; - } dir_hnd = OpenDir(NULL, conn, path, wcard, attr); } -- cgit