diff --git a/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake b/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake index 6919efba2..f197b21d6 100644 --- a/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake +++ b/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake @@ -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") diff --git a/core/iwasm/libraries/libc-uvwasi/libc_uvwasi_wrapper.c b/core/iwasm/libraries/libc-uvwasi/libc_uvwasi_wrapper.c index 59616daf6..35d091e78 100644 --- a/core/iwasm/libraries/libc-uvwasi/libc_uvwasi_wrapper.c +++ b/core/iwasm/libraries/libc-uvwasi/libc_uvwasi_wrapper.c @@ -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); }