svn commit: samba r13560 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Sat Feb 18 02:02:35 GMT 2006


Author: jra
Date: 2006-02-18 02:02:34 +0000 (Sat, 18 Feb 2006)
New Revision: 13560

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13560

Log:
Fix bug #3522 reported by Sandeep Tamhankar <sandman at electric-cloud.com>.
mkdir foo returns the wrong error message when file foo exists.
Jeremy.

Modified:
   trunk/source/smbd/open.c


Changeset:
Modified: trunk/source/smbd/open.c
===================================================================
--- trunk/source/smbd/open.c	2006-02-18 02:02:11 UTC (rev 13559)
+++ trunk/source/smbd/open.c	2006-02-18 02:02:34 UTC (rev 13560)
@@ -1802,12 +1802,6 @@
 		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



More information about the samba-cvs mailing list