From 51e8dc417bdfe009d0fd2dc3eb77cb1346016318 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 18 Feb 2006 02:02:11 +0000 Subject: r13559: Fix bug #3522 reported by Sandeep Tamhankar . mkdir foo returns the wrong error message when file foo exists. Jeremy. (This used to be commit c8185e7f94cbcf2125bf0e84db02fb8d19111f60) --- source3/smbd/open.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source3') 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 -- cgit