diff --git a/CHANGELOG.md b/CHANGELOG.md index e7044146d28..8f4f1d6f6d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## **[Unreleased]** +- [#1252](https://github.com/wasmerio/wasmer/pull/1252) Allow `/` in wasi `--mapdir` wasm path. - [#1212](https://github.com/wasmerio/wasmer/pull/1212) Add support for GDB JIT debugging: - Add `--generate-debug-info` and `-g` flags to `wasmer run` to generate debug information during compilation. The debug info is passed via the GDB JIT interface to a debugger to allow source-level debugging of Wasm files. Currently only available on clif-backend. - Break public middleware APIs: there is now a `source_loc` parameter that should be passed through if applicable. diff --git a/lib/wasi/src/state/builder.rs b/lib/wasi/src/state/builder.rs index 10de1901146..94b7e05ee73 100644 --- a/lib/wasi/src/state/builder.rs +++ b/lib/wasi/src/state/builder.rs @@ -71,11 +71,6 @@ pub enum WasiStateCreationError { fn validate_mapped_dir_alias(alias: &str) -> Result<(), WasiStateCreationError> { for byte in alias.bytes() { match byte { - b'/' => { - return Err(WasiStateCreationError::MappedDirAliasFormattingError( - format!("Alias \"{}\" contains the character '/'", alias), - )); - } b'\0' => { return Err(WasiStateCreationError::MappedDirAliasFormattingError( format!("Alias \"{}\" contains a nul byte", alias),