From 83deae80dcd224639fb251f917bf8c9003e4ecf8 Mon Sep 17 00:00:00 2001 From: Mark McCaskey Date: Wed, 15 May 2019 15:16:52 -0700 Subject: [PATCH] update changelog; clean up --- CHANGELOG.md | 1 + lib/wasi/src/syscalls/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb13b2d3bc5..6586edc7644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Blocks of changes will separated by version increments. ## **[Unreleased]** +- [#449](https://github.com/wasmerio/wasmer/pull/449) Fix bugs: opening host files in filestat and opening with write permissions unconditionally in path_open - [#442](https://github.com/wasmerio/wasmer/pull/442) Misc. WASI FS fixes and implement readdir - [#440](https://github.com/wasmerio/wasmer/pull/440) Fix type mismatch between `wasmer_instance_call` and `wasmer_export_func_*_arity` functions in the runtime C API. - [#269](https://github.com/wasmerio/wasmer/pull/269) Add better runtime docs diff --git a/lib/wasi/src/syscalls/mod.rs b/lib/wasi/src/syscalls/mod.rs index 1ef936c0a91..f313b966479 100644 --- a/lib/wasi/src/syscalls/mod.rs +++ b/lib/wasi/src/syscalls/mod.rs @@ -1500,7 +1500,7 @@ pub fn path_open( let real_opened_file = { let mut open_options = std::fs::OpenOptions::new(); let open_options = open_options.read(true); - let open_options = if dbg!(fs_rights_base & __WASI_RIGHT_FD_WRITE) != 0 { + let open_options = if fs_rights_base & __WASI_RIGHT_FD_WRITE != 0 { open_options.write(true) } else { open_options