bytecodealliance / bytecodealliance/wasmtime

macos wasi: ln -s "" "foo" succeeds

Open
#12,173 4 comments 0 reactions 0 assignees View on GitHub
bug wasi wasi:impl wasi:tests
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 19h
Merged PRs (30d)
121

Description

On https://github.com/WebAssembly/wasi-testsuite/pull/139, there is a test that `ln_s("".to_string(), "whatever".to_string())` fails. However it succeeds on MacOS for some reason.

Should wasmtime filter out `""` as a symlink target, if the OS is unwilling to do so?

(Does `touch ""` work on (any filesystem from) MacOS? I would hope not; if so, perhaps that means we have to allow for `ln_s` targetting `""`.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.