summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-14 20:43:50 +0000
committerJeremy Allison <jra@samba.org>1998-09-14 20:43:50 +0000
commitcabc8f6d3192a4d3e23234948419fc9c1d11b5fd (patch)
tree6e4269d343456907b8a3a29c71f2dd80f10ca140
parentcd5d4d5c12395fc55cca5048ff368d52717ab9cc (diff)
downloadsamba-cabc8f6d3192a4d3e23234948419fc9c1d11b5fd.tar.gz
samba-cabc8f6d3192a4d3e23234948419fc9c1d11b5fd.tar.bz2
samba-cabc8f6d3192a4d3e23234948419fc9c1d11b5fd.zip
Mapped correct open modes for READ_CONTROL access.
Jeremy. (This used to be commit 4a62b73633b8f8707a2961b355d4997f429c86bc)
-rw-r--r--source3/smbd/nttrans.c5
1 files changed, 3 insertions, 2 deletions
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",