Skip to content

[wasm] Fallback to emulated realpath on wasi-libc realpath ENOTSUP #13124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Apr 17, 2025

wasi-libc 22 and later support realpath(3) (WebAssembly/wasi-libc#463) but the underlying host syscall may return ENOTSUP. This is typically the case when using incomplete WASI polyfills on web browsers. For such cases, we should fallback to the emulated realpath.

wasi-libc 22 and later support realpath(3)
(WebAssembly/wasi-libc#463) but the underlying
host syscall may return ENOTSUP. This is typically the case when using
incomplete WASI polyfills on web browsers. For such cases, we should
fallback to the emulated realpath.
@kateinoigakukun kateinoigakukun merged commit b4f74e2 into ruby:master Apr 17, 2025
77 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/realpath-wasi-libc branch April 17, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant