diff options
Diffstat (limited to 'cli/ops')
-rw-r--r-- | cli/ops/fs.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/ops/fs.rs b/cli/ops/fs.rs index cccf32c12..573058d70 100644 --- a/cli/ops/fs.rs +++ b/cli/ops/fs.rs @@ -905,11 +905,12 @@ fn op_utime( } fn op_cwd( - _state: &State, + state: &State, _args: Value, _zero_copy: Option<ZeroCopyBuf>, ) -> Result<JsonOp, OpError> { let path = current_dir()?; + state.check_read(&path)?; let path_str = into_string(path.into_os_string())?; Ok(JsonOp::Sync(json!(path_str))) } |