summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-22 15:55:27 -0700
committerJeremy Allison <jra@samba.org>2009-05-22 15:55:27 -0700
commit8c39931eb3edfd685fb9f9a9b28bd89bc2deede5 (patch)
tree8e69befe682f622a987555b00b5c61912f8cfaed
parente3851a9110dfb416c74bc979a0dedc074883067f (diff)
downloadsamba-8c39931eb3edfd685fb9f9a9b28bd89bc2deede5.tar.gz
samba-8c39931eb3edfd685fb9f9a9b28bd89bc2deede5.tar.bz2
samba-8c39931eb3edfd685fb9f9a9b28bd89bc2deede5.zip
Ensure we return NT_STATUS_FILE_IS_A_DIRECTORY on a posix open on a
directory name. Jeremy.
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index a498e24d74..e907902c65 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -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 */