mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
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.
This commit is contained in:
@ -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 ));
|
||||
|
Reference in New Issue
Block a user