r6200: Returned access should contain share mode as well as open mode.
authorJeremy Allison <jra@samba.org>
Mon, 4 Apr 2005 20:46:16 +0000 (20:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:28 +0000 (10:56 -0500)
Jeremy.
(This used to be commit 3aa784c07723430b429adc9abab9cc7c1325cb35)

source3/smbd/open.c

index fbe763ab0ac5cc941ed0976ae9530300f4e0c960..5b349e2e448a221b7a9b68bd88138d0905e62cac 100644 (file)
@@ -1435,7 +1435,7 @@ flags=0x%X flags2=0x%X mode=0%o returned %d\n",
        DEBUG(10,("open_file_shared : share_mode = %x\n", fsp->share_mode ));
 
        if (Access) {
-               (*Access) = open_mode;
+               (*Access) = (SET_DENY_MODE(deny_mode) | SET_OPEN_MODE(open_mode));
        }
 
        action = 0;