Ensure we return NT_STATUS_FILE_IS_A_DIRECTORY on a posix open on a
authorJeremy Allison <jra@samba.org>
Fri, 22 May 2009 22:55:27 +0000 (15:55 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 22 May 2009 22:55:27 +0000 (15:55 -0700)
directory name.
Jeremy.

source3/smbd/trans2.c

index a498e24d740837a9e0af7d27132de126652a85a6..e907902c65afcbe8de593f535602b193bad4a988 100644 (file)
@@ -6521,7 +6521,7 @@ static NTSTATUS smb_posix_open(connection_struct *conn,
                (FILE_SHARE_READ | FILE_SHARE_WRITE |   /* share_access */
                    FILE_SHARE_DELETE),
                create_disp,                            /* create_disposition*/
-               0,                                      /* create_options */
+               FILE_NON_DIRECTORY_FILE,                /* create_options */
                mod_unixmode,                           /* file_attributes */
                oplock_request,                         /* oplock_request */
                0,                                      /* allocation_size */