[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-5021-gb652082
Jeremy Allison
jra at samba.org
Wed Feb 25 20:55:31 GMT 2009
The branch, v3-3-test has been updated
via b652082648c49b525d2b2ce619b575ee75bc242e (commit)
from 8858ed261917ce6c80562f05f5407109d66bd6a8 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit b652082648c49b525d2b2ce619b575ee75bc242e
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.
-----------------------------------------------------------------------
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 fdca880..2fb0922 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -6382,6 +6382,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