mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-06-06 21:29:22 +00:00
Bump uvwasi to latest commit #392e1f1 (#4312)
This commit is contained in:
parent
62bb6e8158
commit
938503af38
|
@ -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")
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user