summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-04-14 21:01:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:37 -0500
commitda70ef7c06ef55b9049697f13fdaecf8a2f31e35 (patch)
treef38cdaec25b942509cfe47a5ba23340dfd729f8d /source3
parent7a7f9ab847435bbd17012a9a04211c130f4ccb37 (diff)
downloadsamba-da70ef7c06ef55b9049697f13fdaecf8a2f31e35.tar.gz
samba-da70ef7c06ef55b9049697f13fdaecf8a2f31e35.tar.bz2
samba-da70ef7c06ef55b9049697f13fdaecf8a2f31e35.zip
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 used to be commit 77c0ade9fa1e6a31739823be0faa50799bac2775)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 559994ca46..a3bc4a922d 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -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;