summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-18 02:02:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:14 -0500
commit51e8dc417bdfe009d0fd2dc3eb77cb1346016318 (patch)
treea60fbc8aa7ef4d5b4798a5b1a9d67bbb5e9af5fb /source3/smbd
parent0bc643620b38e647d62140d545c042e459df9a6c (diff)
downloadsamba-51e8dc417bdfe009d0fd2dc3eb77cb1346016318.tar.gz
samba-51e8dc417bdfe009d0fd2dc3eb77cb1346016318.tar.bz2
samba-51e8dc417bdfe009d0fd2dc3eb77cb1346016318.zip
r13559: Fix bug #3522 reported by Sandeep Tamhankar <sandman@electric-cloud.com>.
mkdir foo returns the wrong error message when file foo exists. Jeremy. (This used to be commit c8185e7f94cbcf2125bf0e84db02fb8d19111f60)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 4f28e291cd..3e555a8f31 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1802,12 +1802,6 @@ files_struct *open_directory(connection_struct *conn,
return NULL;
}
- if (dir_existed && !S_ISDIR(psbuf->st_mode)) {
- DEBUG(0,("open_directory: %s is not a directory !\n", fname ));
- set_saved_ntstatus(NT_STATUS_NOT_A_DIRECTORY);
- return NULL;
- }
-
switch( create_disposition ) {
case FILE_OPEN:
/* If directory exists open. If directory doesn't