wasi-common 0.3.0

WASI implementation in Rust
Documentation
diff --git a/src/hostcalls_impl/fs.rs b/src/hostcalls_impl/fs.rs
index f18fe4b..fccee2b 100644
--- a/src/hostcalls_impl/fs.rs
+++ b/src/hostcalls_impl/fs.rs
@@ -63,7 +63,6 @@ pub(crate) fn fd_pread(
     let fd = wasi_ctx
         .get_fd_entry(fd, host::__WASI_RIGHT_FD_READ, 0)
         .and_then(|fe| fe.fd_object.descriptor.as_file())?;
-
     let iovs = dec_iovec_slice(memory, iovs_ptr, iovs_len)?;
 
     let offset = dec_filesize(offset);
@@ -519,7 +518,7 @@ pub(crate) fn path_link(
         .get_fd_entry(new_dirfd, host::__WASI_RIGHT_PATH_LINK_TARGET, 0)
         .and_then(|fe| fe.fd_object.descriptor.as_file())?;
     let resolved_old = path_get(old_dirfd, 0, old_path, false)?;
-    let resolved_new = path_get(new_dirfd, 0, new_path, false)?;
+    let resolved_new = path_get(new_dirfd, 0, new_path, true)?;
 
     hostcalls_impl::path_link(resolved_old, resolved_new)
 }
@@ -927,7 +926,7 @@ pub(crate) fn path_symlink(
     let dirfd = wasi_ctx
         .get_fd_entry(dirfd, host::__WASI_RIGHT_PATH_SYMLINK, 0)
         .and_then(|fe| fe.fd_object.descriptor.as_file())?;
-    let resolved_new = path_get(dirfd, 0, new_path, false)?;
+    let resolved_new = path_get(dirfd, 0, new_path, true)?;
 
     hostcalls_impl::path_symlink(old_path, resolved_new)
 }
@@ -954,7 +953,7 @@ pub(crate) fn path_unlink_file(
     let dirfd = wasi_ctx
         .get_fd_entry(dirfd, host::__WASI_RIGHT_PATH_UNLINK_FILE, 0)
         .and_then(|fe| fe.fd_object.descriptor.as_file())?;
-    let resolved = path_get(dirfd, 0, path, false)?;
+    let resolved = path_get(dirfd, 0, path, true)?;
 
     hostcalls_impl::path_unlink_file(resolved)
 }