summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-10 13:09:06 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-11 22:45:01 +0200
commitf5d320ac0fb74d4ad95a03969366096e9b074379 (patch)
tree565d31cb496569a6cc2f77afc61d76daa4267e60 /source3
parenta1046389ffcc476456ac76cb701a4325d1c42ef9 (diff)
downloadsamba-f5d320ac0fb74d4ad95a03969366096e9b074379.tar.gz
samba-f5d320ac0fb74d4ad95a03969366096e9b074379.tar.bz2
samba-f5d320ac0fb74d4ad95a03969366096e9b074379.zip
s3:smb2_create: use smbd_calculate_access_mask() instead of smbd_check_open_rights()
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jul 11 22:45:01 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb2_create.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index 23602861f2..7c6b4bc46c 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -736,8 +736,13 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
uint32_t max_access_granted;
DATA_BLOB blob = data_blob_const(p, sizeof(p));
- status = smbd_check_open_rights(smb1req->conn,
+ status = smbd_calculate_access_mask(smb1req->conn,
result->fsp_name,
+ /*
+ * at this stage
+ * it exists
+ */
+ true,
SEC_FLAG_MAXIMUM_ALLOWED,
&max_access_granted);