Skip to content

Commit

Permalink
Update stub wasi generate import object fn
Browse files Browse the repository at this point in the history
Fix typo

Fix debug issue
  • Loading branch information
MarkMcCaskey committed Oct 2, 2019
1 parent 5185f12 commit afbde49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/wasi/src/state/mod.rs
Expand Up @@ -190,7 +190,7 @@ impl WasiFs {

debug!("wasi::fs::preopen_dirs");
for dir in preopened_dirs {
debug!("Attempting to preopen {}", &dir);
debug!("Attempting to preopen {}", &dir.to_string_lossy());
// TODO: think about this
let default_rights = 0x1FFFFFFF; // all rights
let cur_dir_metadata = dir.metadata().map_err(|e| {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/wasmer.rs
Expand Up @@ -53,7 +53,7 @@ mod wasmer_wasi {
pub fn generate_import_object(
_args: Vec<Vec<u8>>,
_envs: Vec<Vec<u8>>,
_preopened_files: Vec<String>,
_preopened_files: Vec<std::path::PathBuf>,
_mapped_dirs: Vec<(String, std::path::PathBuf)>,
) -> ImportObject {
unimplemented!()
Expand Down

0 comments on commit afbde49

Please sign in to comment.