summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-09-09 21:49:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:33 -0500
commit11c79fa98fd41be7d770d7e1da8053dd4f3082a8 (patch)
tree33ec82cb32f79121fe423344e5e5fb262220a913
parent951a0cec620f03b4ae56bdbfef9940f0ef31b2d6 (diff)
downloadsamba-11c79fa98fd41be7d770d7e1da8053dd4f3082a8.tar.gz
samba-11c79fa98fd41be7d770d7e1da8053dd4f3082a8.tar.bz2
samba-11c79fa98fd41be7d770d7e1da8053dd4f3082a8.zip
r10133: Fix bug #3044. open-exec is read-only.
Jeremy. (This used to be commit ed644d4014c3dc6c0508e94470c277599b1db933)
-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 98c2997a97..ed847826d5 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1046,13 +1046,13 @@ BOOL map_open_params_to_ntcreate(const char *fname, int deny_mode, int open_func
/* Create the NT compatible access_mask. */
switch (GET_OPENX_MODE(deny_mode)) {
+ case DOS_OPEN_EXEC: /* Implies read-only - used to be FILE_READ_DATA */
case DOS_OPEN_RDONLY:
access_mask = FILE_GENERIC_READ;
break;
case DOS_OPEN_WRONLY:
access_mask = FILE_GENERIC_WRITE;
break;
- case DOS_OPEN_EXEC: /* This used to be FILE_READ_DATA... */
case DOS_OPEN_RDWR:
case DOS_OPEN_FCB:
access_mask = FILE_GENERIC_READ|FILE_GENERIC_WRITE;