Revert "Call check_parent_access() on readdir."
authorJeremy Allison <jra@samba.org>
Thu, 3 Nov 2011 18:49:05 +0000 (11:49 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 4 Nov 2011 21:15:43 +0000 (14:15 -0700)
This reverts commit a763edaf9c76afe2546c035fc090370301dd347b.

Checking the wrong thing..

source3/smbd/dir.c

index 18c5935fdba02285e40e091a5d1231243fcbff90..cc7488681049c5465f00c16bbbd33164bbc78294 100644 (file)
@@ -427,7 +427,6 @@ NTSTATUS dptr_create(connection_struct *conn, files_struct *fsp,
        struct smbd_server_connection *sconn = conn->sconn;
        struct dptr_struct *dptr = NULL;
        struct smb_Dir *dir_hnd;
-       NTSTATUS status;
 
        if (fsp && fsp->is_directory && fsp->fh->fd != -1) {
                path = fsp->fsp_name->base_name;
@@ -444,18 +443,6 @@ NTSTATUS dptr_create(connection_struct *conn, files_struct *fsp,
                return NT_STATUS_INVALID_PARAMETER;
        }
 
-       status = check_parent_access(conn,
-                               path,
-                               SEC_DIR_LIST,
-                               NULL);
-       if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(5,("dptr_create: parent access check for path "
-                       "%s failed with %s\n",
-                       path,
-                       nt_errstr(status)));
-               return status;
-       }
-
        if (fsp) {
                dir_hnd = OpenDir_fsp(NULL, conn, fsp, wcard, attr);
        } else {