Is being able to open and stat a directory intended? #3203
Labels
bug
Something isn't working
📦 lib-wasi
About wasmer-wasi
priority-medium
Medium priority issue
🏚 stale
Inactive issues or PR
Describe the bug
Wasmer is able to
open
andstat
a directory when the flag isO_RDWR
.Steps to reproduce
Store the above into a file
dir.c
.Compile with
wasi-sdk-16.0
and run with wasmer.To compare:
Expected behavior
The
open
returns-1
.Actual behavior
open
returns a file descriptor and it can be used tostat
.The text was updated successfully, but these errors were encountered: