[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4573-g1008d35

Jeremy Allison jra at samba.org
Mon Dec 1 21:52:27 GMT 2008


The branch, v3-3-test has been updated
       via  1008d353f2e4248901ae06ba3b8bd5b1251c5550 (commit)
      from  1ed7315ea8e458a1a606eb97894a7b5ba000cd94 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 1008d353f2e4248901ae06ba3b8bd5b1251c5550
Author: Stefan Metzmacher <metze at samba.org>
Date:   Mon Dec 1 13:51:39 2008 -0800

    s3:smbd: only try and fallback to open a directory if it's not a stream open
    
    metze

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/open.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/open.c b/source/smbd/open.c
index 7fd2855..dccfb84 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -2924,6 +2924,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