Compile the snippet with wasi crate v0.11 and run with wasmer:
cargo build --target wasm32-wasi
wasmer run --mapdir /dir:. target/wasm32-wasi/debug/example.wasm
Expected behavior
The function should return a error code.
Actual behavior
Wasmer panics:
thread 'main' panicked at lib/wasix/src/syscalls/wasi/path_symlink.rs:104:17:
internal error: entered unreachable code: get_parent_inode_at_path returned something other than a Dir or Root
Describe the bug
Calling
path_symlink
with a non-directory descriptor and anew_path
with only one component crashes Wasmer.Wasmer commit: fb9a04bb72d5203b3af4076122486f728fd710b2
Steps to reproduce
Compile the snippet with
wasi
crate v0.11 and run with wasmer:Expected behavior
The function should return a error code.
Actual behavior
Wasmer panics: