From cabc8f6d3192a4d3e23234948419fc9c1d11b5fd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 14 Sep 1998 20:43:50 +0000 Subject: Mapped correct open modes for READ_CONTROL access. Jeremy. (This used to be commit 4a62b73633b8f8707a2961b355d4997f429c86bc) --- source3/smbd/nttrans.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 866d9938b1..95adc5ccb7 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -324,9 +324,10 @@ static int map_share_mode( uint32 desired_access, uint32 share_access, uint32 fi } if (smb_open_mode == -1) { - if(desired_access & (DELETE_ACCESS|FILE_WRITE_ATTRIBUTES)) + if(desired_access & (DELETE_ACCESS|FILE_WRITE_ATTRIBUTES| + WRITE_DAC_ACCESS|WRITE_OWNER_ACCESS)) smb_open_mode = 2; - else if( desired_access & FILE_EXECUTE) + else if(desired_access & (FILE_EXECUTE|READ_CONTROL_ACCESS)) smb_open_mode = 0; else { DEBUG(0,("map_share_mode: Incorrect value for desired_access = %x\n", -- cgit