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

Karolin Seeger kseeger at samba.org
Sat May 23 18:38:17 GMT 2009


The branch, v3-2-test has been updated
       via  a7f96104b957ba0eb910f8c0073818f872345e3c (commit)
       via  2050a239a5fee6cfd17d083619cc4a03a3a6dd6d (commit)
      from  cdc93a7edc6798078a7b21b1728a844437b6522b (commit)

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


- Log -----------------------------------------------------------------
commit a7f96104b957ba0eb910f8c0073818f872345e3c
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.
    (cherry picked from commit 8d178837f259757340a09a688ed194e3e4a92c36)
    (cherry picked from commit 6631ca4a51d4b13d2edd2dc899f7b76c233825b5)

commit 2050a239a5fee6cfd17d083619cc4a03a3a6dd6d
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Feb 25 12:54:58 2009 -0800

    Fix bug in processing of open modes in POSIX open.
    Was missing case of "If file exists open. If file doesn't exist error."
    Damn damn damn. CIFSFS client will have to have fallback cases
    for this error for a long time.
    Jeremy.
    (cherry picked from commit b652082648c49b525d2b2ce619b575ee75bc242e)
    (cherry picked from commit 12cf12f10c1c6adad568daf6c16144a99b0f822e)

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

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


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 31fd18d..25b0c13 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -6362,6 +6362,8 @@ 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 & (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",
 			(unsigned int)wire_open_mode ));


-- 
Samba Shared Repository


More information about the samba-cvs mailing list