Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else()
FetchContent_Declare(
uvwasi
GIT_REPOSITORY https://github.com/nodejs/uvwasi.git
GIT_TAG v0.0.21
GIT_TAG 392e1f1c1c8a2d2102c9f2e0b9f35959a149d133
)
FetchContent_MakeAvailable(uvwasi)
include_directories("${uvwasi_SOURCE_DIR}/include")
Expand Down
18 changes: 0 additions & 18 deletions core/iwasm/libraries/libc-uvwasi/libc_uvwasi_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,24 +890,6 @@ wasi_path_symlink(wasm_exec_env_t exec_env, const char *old_path,
if (!uvwasi)
return (wasi_errno_t)-1;

/*
* check if old_path is valid.
* if it is a symlink, follow it.
*
* this is a workaround for the fact that
* uvwasi_path_symlink does not check if the old_path is valid
*
* the goal is trigger uvwasi__resolve_path() to check
*/
{
uvwasi_filestat_t filestat = { 0 };
wasi_errno_t err =
uvwasi_path_filestat_get(uvwasi, fd, UVWASI_LOOKUP_SYMLINK_FOLLOW,
old_path, old_path_len, &filestat);
if (err)
return err;
}

return uvwasi_path_symlink(uvwasi, old_path, old_path_len, fd, new_path,
new_path_len);
}
Expand Down
Loading