[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-1237-g3d7cde5

Jeremy Allison jra at samba.org
Wed Feb 25 20:55:22 GMT 2009


The branch, master has been updated
       via  3d7cde5dd3603ba3a7e78e8ca9a28d5bbf816b80 (commit)
      from  d86cb9b52d8cdaa03f856665f56278836e6336d3 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 3d7cde5dd3603ba3a7e78e8ca9a28d5bbf816b80
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Feb 25 12:53:45 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.

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

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


Changeset truncated at 500 lines:

diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 433b8a0..369830b 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -6423,6 +6423,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 == 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