diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2021-04-12 04:15:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 11:15:43 +0900 |
commit | fefe93c91b63e35bf88f5f432f0cca09948d0623 (patch) | |
tree | bf8f3e031cf558161277e01e4ca2e2c7817ef6ab /runtime/ops/process.rs | |
parent | 8b49d948f58e0665e87e63f7e154ab53fa60a939 (diff) |
feat(runtime/permissions): prompt fallback (#9376)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/ops/process.rs')
-rw-r--r-- | runtime/ops/process.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index 625bc204c..4b49e21f3 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -97,7 +97,7 @@ fn op_run( _zero_copy: Option<ZeroCopyBuf>, ) -> Result<RunInfo, AnyError> { let args = run_args.cmd; - state.borrow::<Permissions>().run.check(&args[0])?; + state.borrow_mut::<Permissions>().run.check(&args[0])?; let env = run_args.env; let cwd = run_args.cwd; @@ -286,7 +286,7 @@ fn op_kill( _zero_copy: Option<ZeroCopyBuf>, ) -> Result<(), AnyError> { super::check_unstable(state, "Deno.kill"); - state.borrow::<Permissions>().run.check_all()?; + state.borrow_mut::<Permissions>().run.check_all()?; kill(args.pid, args.signo)?; Ok(()) |