Access flags are lost when using openat
from wasi-libc
#9054
Labels
bug
Incorrect behavior in the current implementation that needs fixing
openat
from wasi-libc
#9054
Test Case
open-dir-tmpdir-rw-sdk-23.zip
Steps to Reproduce
Built via:
Run with strace via:
Expected Results
The test program should exit with 0, and the last
openat
call should haveO_RDWR
set instead ofO_RDONLY
.Actual Results
The test program exits with 1, since the last
openat
call loses theO_RDWR
flag and erroneously setsO_RDONLY
instead.Versions and Environment
Wasmtime version or commit: wasi-sdk 23.0 and wasmtime 23.0.1
Operating system: Linux
Architecture: x86_64
Extra Info
This is a partial regression of a bug that was fixed by #6463. This bug is not present in wasmtime versions
v9.0.1
-v14.0.4
wasi-libc issue: WebAssembly/wasi-libc#415
The text was updated successfully, but these errors were encountered: