summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/dir.c4
1 files changed, 0 insertions, 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);
}