summaryrefslogtreecommitdiff
path: root/cli/ops/os.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/os.rs')
-rw-r--r--cli/ops/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/ops/os.rs b/cli/ops/os.rs
index 5c205f37b..d9a6b3095 100644
--- a/cli/ops/os.rs
+++ b/cli/ops/os.rs
@@ -82,8 +82,8 @@ fn op_exec_path(
_args: Value,
_zero_copy: Option<ZeroCopyBuf>,
) -> Result<JsonOp, OpError> {
- state.check_env()?;
let current_exe = env::current_exe().unwrap();
+ state.check_read(&current_exe)?;
// Now apply URL parser to current exe to get fully resolved path, otherwise
// we might get `./` and `../` bits in `exec_path`
let exe_url = Url::from_file_path(current_exe).unwrap();