bytecodealliance / bytecodealliance/wasmtime

wasi-common: UNC paths are not handled correctly on windows

Open
#2,650 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 19h
Merged PRs (30d)
121

Description

The following test executes correctly on a "normal" disk (C:\) on windows, but not on a network shared drive. @peterhuene determined that this is because UNC paths are not handled correctly in cap-std.
https://github.com/bytecodealliance/wasmtime/issues/2642#issuecomment-776293712

`wasmtime main.wasm --dir .`
```
fn main() -> std::io::Result<()> {
let path = std::path::Path::new("dir.tmp");
std::fs::create_dir(path)?;
assert!(path.exists());
Ok(())
}
```

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.