summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-11-03 11:49:05 -0700
committerJeremy Allison <jra@samba.org>2011-11-04 14:15:43 -0700
commitd433af92b9085e862b6fd3e3f4aea90051d9a2fc (patch)
treeb848a543828aba345a2c5f559f3769c1b7bcba69
parent51c86c8e67c3b026f49136f5b6743c279cc206d2 (diff)
downloadsamba-d433af92b9085e862b6fd3e3f4aea90051d9a2fc.tar.gz
samba-d433af92b9085e862b6fd3e3f4aea90051d9a2fc.tar.bz2
samba-d433af92b9085e862b6fd3e3f4aea90051d9a2fc.zip
Revert "Call check_parent_access() on readdir."
This reverts commit a763edaf9c76afe2546c035fc090370301dd347b. Checking the wrong thing..
-rw-r--r--source3/smbd/dir.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 18c5935fdb..cc74886810 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -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 {