diff options
author | Jeremy Allison <jra@samba.org> | 2005-03-19 00:31:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:07 -0500 |
commit | 8b2b652c0a47298cd188c67d256dfdffe01a951d (patch) | |
tree | 93178a6d77f3fa11fc0ff2bc4a80a4b92b6e520e /source/smbd/nttrans.c | |
parent | dec1ab360691d628cb83c7efdef55ea0447f6558 (diff) | |
download | samba-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.c | 5 |
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. */ |