mirror of
https://github.com/samba-team/samba.git
synced 2025-02-10 13:57:47 +03:00
r6344: Fix bug #2601 - it seems that DOS_OPEN_EXEC does mean readonly. Needed
for Win9x and OS/2 clients. More Samba4 tests against W2k3 will be needed to confirm this but in the meantime get it up and running. Jeremy.
This commit is contained in:
parent
b92e8b1c82
commit
77c0ade9fa
@ -1159,6 +1159,7 @@ files_struct *open_file_shared1(connection_struct *conn,char *fname, SMB_STRUCT_
|
||||
append does not mean the same thing under dos and unix */
|
||||
|
||||
switch (GET_OPEN_MODE(share_mode)) {
|
||||
case DOS_OPEN_EXEC:
|
||||
case DOS_OPEN_RDONLY:
|
||||
flags = O_RDONLY;
|
||||
if (desired_access == 0)
|
||||
@ -1176,7 +1177,6 @@ files_struct *open_file_shared1(connection_struct *conn,char *fname, SMB_STRUCT_
|
||||
desired_access = FILE_READ_DATA|FILE_WRITE_DATA;
|
||||
break;
|
||||
case DOS_OPEN_RDWR:
|
||||
case DOS_OPEN_EXEC:
|
||||
flags = O_RDWR;
|
||||
if (desired_access == 0)
|
||||
desired_access = FILE_READ_DATA|FILE_WRITE_DATA;
|
||||
|
Loading…
x
Reference in New Issue
Block a user