[SCM] Samba Shared Repository - branch master updated -
787b0536b7a8d3b13bcb3b0f1d8f7ef7d99f4561
Jeremy Allison
jra at samba.org
Mon Dec 1 21:52:50 GMT 2008
The branch, master has been updated
via 787b0536b7a8d3b13bcb3b0f1d8f7ef7d99f4561 (commit)
from d1d9dc557434f4eb48cf53269920f43861e8c116 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 787b0536b7a8d3b13bcb3b0f1d8f7ef7d99f4561
Author: Stefan Metzmacher <metze at samba.org>
Date: Mon Dec 1 13:52:28 2008 -0800
s3:smbd: only try and fallback to open a directory if it's not a stream open
metze
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/open.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index a8cc5c9..420a65b 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2927,6 +2927,13 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
if (NT_STATUS_EQUAL(status, NT_STATUS_FILE_IS_A_DIRECTORY)) {
+ /* A stream open never opens a directory */
+
+ if (base_fsp) {
+ status = NT_STATUS_FILE_IS_A_DIRECTORY;
+ goto fail;
+ }
+
/*
* Fail the open if it was explicitly a non-directory
* file.
--
Samba Shared Repository
More information about the samba-cvs
mailing list