We don't need check_name() here. All possible paths to dptr_create()
authorJeremy Allison <jra@samba.org>
Tue, 2 Aug 2011 23:25:22 +0000 (16:25 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 3 Aug 2011 01:00:55 +0000 (03:00 +0200)
have already called check_name.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Aug  3 03:00:55 CEST 2011 on sn-devel-104

source3/smbd/dir.c

index fc74eea76cdba114828743bd6dc753803eb5170d..e7c17de1f6f7c40039607dec967ce9d47bebca35 100644 (file)
@@ -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);
        }