diff --git a/lib/wasi/src/syscalls/mod.rs b/lib/wasi/src/syscalls/mod.rs index 637412be11a..efb01719357 100644 --- a/lib/wasi/src/syscalls/mod.rs +++ b/lib/wasi/src/syscalls/mod.rs @@ -2454,7 +2454,7 @@ pub fn path_open( // TODO: check and reduce these // TODO: ensure a mutable fd to root can never be opened let out_fd = wasi_try!(state.fs.create_fd( - adjusted_rights, + working_dir_rights_inheriting, fs_rights_inheriting, fs_flags, open_flags,