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

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


The branch, v3-2-test has been updated
       via  b095db2f9db084798a8e6d2bc44a6215f4038658 (commit)
      from  8cb8ab81678e8fee570f228c3851c384abf54054 (commit)

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


- Log -----------------------------------------------------------------
commit b095db2f9db084798a8e6d2bc44a6215f4038658
Author: Stefan Metzmacher <metze at samba.org>
Date:   Mon Dec 1 13:51:59 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 b20927c..c4b244f 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -2826,6 +2826,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