diff options
Diffstat (limited to 'runtime/ops/fs.rs')
-rw-r--r-- | runtime/ops/fs.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs index c3e9215a2..4c29898d7 100644 --- a/runtime/ops/fs.rs +++ b/runtime/ops/fs.rs @@ -1370,7 +1370,8 @@ fn op_symlink_sync( let oldpath = PathBuf::from(&args.oldpath); let newpath = PathBuf::from(&args.newpath); - state.borrow_mut::<Permissions>().write.check(&newpath)?; + state.borrow_mut::<Permissions>().write.check_all()?; + state.borrow_mut::<Permissions>().read.check_all()?; debug!( "op_symlink_sync {} {}", @@ -1432,7 +1433,8 @@ async fn op_symlink_async( { let mut state = state.borrow_mut(); - state.borrow_mut::<Permissions>().write.check(&newpath)?; + state.borrow_mut::<Permissions>().write.check_all()?; + state.borrow_mut::<Permissions>().read.check_all()?; } tokio::task::spawn_blocking(move || { |