Skip to content

Commit 938503a

Browse files
authored
Bump uvwasi to latest commit #392e1f1 (#4312)
1 parent 62bb6e8 commit 938503a

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ else()
4343
FetchContent_Declare(
4444
uvwasi
4545
GIT_REPOSITORY https://github.com/nodejs/uvwasi.git
46-
GIT_TAG v0.0.21
46+
GIT_TAG 392e1f1c1c8a2d2102c9f2e0b9f35959a149d133
4747
)
4848
FetchContent_MakeAvailable(uvwasi)
4949
include_directories("${uvwasi_SOURCE_DIR}/include")

core/iwasm/libraries/libc-uvwasi/libc_uvwasi_wrapper.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -890,24 +890,6 @@ wasi_path_symlink(wasm_exec_env_t exec_env, const char *old_path,
890890
if (!uvwasi)
891891
return (wasi_errno_t)-1;
892892

893-
/*
894-
* check if old_path is valid.
895-
* if it is a symlink, follow it.
896-
*
897-
* this is a workaround for the fact that
898-
* uvwasi_path_symlink does not check if the old_path is valid
899-
*
900-
* the goal is trigger uvwasi__resolve_path() to check
901-
*/
902-
{
903-
uvwasi_filestat_t filestat = { 0 };
904-
wasi_errno_t err =
905-
uvwasi_path_filestat_get(uvwasi, fd, UVWASI_LOOKUP_SYMLINK_FOLLOW,
906-
old_path, old_path_len, &filestat);
907-
if (err)
908-
return err;
909-
}
910-
911893
return uvwasi_path_symlink(uvwasi, old_path, old_path_len, fd, new_path,
912894
new_path_len);
913895
}

0 commit comments

Comments
 (0)