Skip to content

Commit

Permalink
Add missing __WASI_RIGHT_FD_FDSTAT_SET_FLAGS for preopened directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Nov 9, 2021
1 parent 04a4758 commit 3faabd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wasi/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ impl WasiFs {
| __WASI_RIGHT_SOCK_SHUTDOWN;
}
if *write {
rights |= __WASI_RIGHT_FD_FDSTAT_SET_FLAGS
rights |= __WASI_RIGHT_FD_DATASYNC
| __WASI_RIGHT_FD_FDSTAT_SET_FLAGS
| __WASI_RIGHT_FD_WRITE
| __WASI_RIGHT_FD_SYNC
| __WASI_RIGHT_FD_ALLOCATE
Expand Down

0 comments on commit 3faabd3

Please sign in to comment.