Bump uvwasi to latest commit #392e1f1 (#4312)

This commit is contained in:
liang.he 2025-06-03 13:21:17 +08:00 committed by GitHub
parent 62bb6e8158
commit 938503af38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 19 deletions

View File

@ -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")

View File

@ -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);
}