From 3faabd3ed96558d68a064ec0fd36811a790c9ede Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Tue, 9 Nov 2021 16:22:20 +0000 Subject: [PATCH] Add missing __WASI_RIGHT_FD_FDSTAT_SET_FLAGS for preopened directories --- lib/wasi/src/state/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wasi/src/state/mod.rs b/lib/wasi/src/state/mod.rs index fa3fdf22376..071f76ae940 100644 --- a/lib/wasi/src/state/mod.rs +++ b/lib/wasi/src/state/mod.rs @@ -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