From 7a88a320c7bf770f18762857bbfc3b0d31716f4b Mon Sep 17 00:00:00 2001 From: Syrus Date: Sat, 29 Feb 2020 08:47:25 -0800 Subject: [PATCH 1/2] Allow / in mapdir wasm path --- lib/wasi/src/state/builder.rs | 5 ----- 1 file changed, 5 deletions(-) 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), From f8b206d438bb1febe57b5c89db24a09a02f765f9 Mon Sep 17 00:00:00 2001 From: Syrus Date: Sat, 29 Feb 2020 08:49:38 -0800 Subject: [PATCH 2/2] Added changes into changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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.