From 8c39931eb3edfd685fb9f9a9b28bd89bc2deede5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 22 May 2009 15:55:27 -0700 Subject: [PATCH] Ensure we return NT_STATUS_FILE_IS_A_DIRECTORY on a posix open on a directory name. Jeremy. --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index a498e24d740..e907902c65a 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 */ -- 2.11.4.GIT