Author: jra Date: 2006-02-18 02:02:11 +0000 (Sat, 18 Feb 2006) New Revision: 13559
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13559 Log: Fix bug #3522 reported by Sandeep Tamhankar <[EMAIL PROTECTED]>. mkdir foo returns the wrong error message when file foo exists. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/open.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/open.c =================================================================== --- branches/SAMBA_3_0/source/smbd/open.c 2006-02-18 01:21:27 UTC (rev 13558) +++ branches/SAMBA_3_0/source/smbd/open.c 2006-02-18 02:02:11 UTC (rev 13559) @@ -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