From deb021217248484ffb532661c82da541107f9bc9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 19 Mar 2005 00:31:45 +0000 Subject: 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. (This used to be commit 8b2b652c0a47298cd188c67d256dfdffe01a951d) --- source3/smbd/nttrans.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/smbd/nttrans.c') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index fbb7364090..26e5195d77 100644 --- a/source3/smbd/nttrans.c +++ b/source3/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. */ -- cgit