You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling path_open on a directory with the fd_write right should fail with isdir. This behavior is consistent among other runtimes (Wasmtime, WasmEdge, Wazero, WAMR, Node). Wasmer however successfully opens the directory.
This commit changes `path_open` such that opening an existing directory
with the `rights::fd_write` flag set returns an error `isdir`. This
behavior is consistent with other runtimes.
fixeswasmerio#4766
Describe the bug
Calling
path_open
on a directory with thefd_write
right should fail withisdir
. This behavior is consistent among other runtimes (Wasmtime, WasmEdge, Wazero, WAMR, Node). Wasmer however successfully opens the directory.wasmer -vV; rustc -vV wasmer 4.3.1 (b986b4a 2024-05-28) binary: wasmer-cli commit-hash: b986b4a0faa56a30daa3554feff29e191849da65 commit-date: 2024-05-28 host: x86_64-apple-darwin compiler: singlepass,cranelift rustc 1.78.0 (9b00956e5 2024-04-29) binary: rustc commit-hash: 9b00956e56009bab2aa15d7bff10916599e3d6d6 commit-date: 2024-04-29 host: x86_64-apple-darwin release: 1.78.0 LLVM version: 18.1.2
Steps to reproduce
Compile this minimum example with
wasi
cratev0.11
(for preview1 API).The text was updated successfully, but these errors were encountered: