Skip to content

Commit

Permalink
clean up, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMcCaskey committed May 10, 2019
1 parent a527154 commit 02f3349
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,7 @@ Blocks of changes will separated by version increments.

## **[Unreleased]**

- [#429](https://github.com/wasmerio/wasmer/pull/429) Get wasi::path_filestat_get working for some programs; misc. minor WASI FS improvements
- [#413](https://github.com/wasmerio/wasmer/pull/413) Update LLVM backend to use new parser codegen traits

## 0.4.1 - 2018-05-06
Expand Down
3 changes: 0 additions & 3 deletions lib/wasi/src/syscalls/mod.rs
Expand Up @@ -1111,15 +1111,12 @@ pub fn path_filestat_get(
} else {
// lazily load
debug!("Lazily loading entry {:?}", &segment);
debug!("EEE");
let path_metadata =
wasi_try!(cumulative_path.metadata().map_err(|_| __WASI_ENOENT));
debug!("DDD");
if !path_metadata.is_dir() {
// TODO: should this just return invalid arg?
return __WASI_ENOTDIR;
}
debug!("AAA");
let kind = Kind::Dir {
path: std::path::PathBuf::from(&segment),
entries: Default::default(),
Expand Down

0 comments on commit 02f3349

Please sign in to comment.