From 28984858486b9e61142afd3d34ae1e822e0ccef1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Nov 2011 10:51:29 -0700 Subject: Move the SEC_DIR_LIST check into dptr_create for SMB2 and now for SMB1. The pathname check still needs fixing. Autobuild-User: Jeremy Allison Autobuild-Date: Sat Nov 5 01:38:00 CET 2011 on sn-devel-104 --- source3/smbd/smb2_find.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source3/smbd/smb2_find.c') diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c index e64db24d02..6369e7fdbe 100644 --- a/source3/smbd/smb2_find.c +++ b/source3/smbd/smb2_find.c @@ -323,11 +323,6 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx, if (fsp->dptr == NULL) { bool wcard_has_wild; - if (!(fsp->access_mask & SEC_DIR_LIST)) { - tevent_req_nterror(req, NT_STATUS_ACCESS_DENIED); - return tevent_req_post(req, ev); - } - wcard_has_wild = ms_has_wild(in_file_name); status = dptr_create(conn, -- cgit