Index: smbd/open.c =================================================================== --- smbd/open.c (revision 13558) +++ smbd/open.c (working copy) @@ -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