bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
14.82k stars 1.23k forks source link

Fix `fcntl(fd, F_GETFL)` from wasi-libc with write-only files #8824

Closed alexcrichton closed 2 weeks ago

alexcrichton commented 2 weeks ago

Looks like wasi-libc is testing for the READDIR right in addition to the READ right in the reported flags. Update write-only files to remove both the READ and READDIR rights accordingly.

Closes #8816