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 <j...@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