From f5d320ac0fb74d4ad95a03969366096e9b074379 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 10 Jul 2011 13:09:06 +0200 Subject: [PATCH] s3:smb2_create: use smbd_calculate_access_mask() instead of smbd_check_open_rights() metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Mon Jul 11 22:45:01 CEST 2011 on sn-devel-104 --- source3/smbd/smb2_create.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 23602861f2a2..7c6b4bc46ce2 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); -- 2.34.1