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

Jeremy Allison jra at samba.org
Wed Feb 25 21:01:20 GMT 2009


The branch, v3-3-test has been updated
       via  8d178837f259757340a09a688ed194e3e4a92c36 (commit)
      from  b652082648c49b525d2b2ce619b575ee75bc242e (commit)

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


- Log -----------------------------------------------------------------
commit 8d178837f259757340a09a688ed194e3e4a92c36
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Feb 25 13:00:21 2009 -0800

    Make test for open modes more robust against other bits.
    Jeremy.

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

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


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 2fb0922..1b3dff2 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -6382,7 +6382,7 @@ static NTSTATUS smb_posix_open(connection_struct *conn,
 		create_disp = FILE_OVERWRITE_IF;
 	} else if((wire_open_mode & SMB_O_CREAT) == SMB_O_CREAT) {
 		create_disp = FILE_OPEN_IF;
-	} else if (wire_open_mode == 0) {
+	} else if ((wire_open_mode & (SMB_O_CREAT | SMB_O_EXCL | SMB_O_TRUNC)) == 0) {
 		create_disp = FILE_OPEN;
 	} else {
 		DEBUG(5,("smb_posix_open: invalid create mode 0x%x\n",


-- 
Samba Shared Repository


More information about the samba-cvs mailing list