s3:smb2_create: use smbd_calculate_access_mask() instead of smbd_check_open_rights()
authorStefan Metzmacher <metze@samba.org>
Sun, 10 Jul 2011 11:09:06 +0000 (13:09 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 11 Jul 2011 20:45:01 +0000 (22:45 +0200)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jul 11 22:45:01 CEST 2011 on sn-devel-104

source3/smbd/smb2_create.c

index 23602861f2a2fde06ea663f9f19495b5bb0bb8cb..7c6b4bc46ce2c219377e6f7755b7ce97505b611f 100644 (file)
@@ -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);