summaryrefslogtreecommitdiffstats
path: root/source/smbd/nttrans.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-19 00:31:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:07 -0500
commit8b2b652c0a47298cd188c67d256dfdffe01a951d (patch)
tree93178a6d77f3fa11fc0ff2bc4a80a4b92b6e520e /source/smbd/nttrans.c
parentdec1ab360691d628cb83c7efdef55ea0447f6558 (diff)
downloadsamba-8b2b652c0a47298cd188c67d256dfdffe01a951d.tar.gz
samba-8b2b652c0a47298cd188c67d256dfdffe01a951d.tar.xz
samba-8b2b652c0a47298cd188c67d256dfdffe01a951d.zip
r5893: Get us to pass some of the Samba4 EA tests. EA_LIST seems to be
working - need to valgrind it to be sure. Jeremy.
Diffstat (limited to 'source/smbd/nttrans.c')
-rw-r--r--source/smbd/nttrans.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index fbb73640901..26e5195d77c 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -353,6 +353,11 @@ static int map_share_mode( char *fname, uint32 create_options,
int smb_open_mode = -1;
uint32 original_desired_access = *desired_access;
+ /* This is a nasty hack - must fix... JRA. */
+ if (*desired_access == MAXIMUM_ALLOWED_ACCESS) {
+ *desired_access = FILE_GENERIC_ALL;
+ }
+
/*
* Convert GENERIC bits to specific bits.
*/