Skip to content
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

Return Notsup for absolute symlinks instead of panicking #4429

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

boomshroom
Copy link
Contributor

Generally when userspace tries to do something the environment can't do (even if it might be able to do it in the future), the usual response is the return a "Not Supported" error, rather than crashing the entire environment.

This addresses, but doesn't quite solve #2243.

Generally when userspace tries to do something the environment can't do (even if it might be able to do it in the future), the usual response is the return a "Not Supported" error, rather than crashing the entire environment.
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, will wait from feedback from @theduke or @john-sharratt prior to merge

Copy link
Contributor

@theduke theduke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, this is a leftover, returning an error is the proper way to go here.

Thanks!

Approved.

lib/wasix/src/fs/mod.rs Show resolved Hide resolved
@theduke theduke enabled auto-merge (rebase) February 1, 2024 15:01
@theduke theduke merged commit c7218c9 into wasmerio:master Feb 1, 2024
51 of 52 checks passed
@boomshroom boomshroom deleted the patch-1 branch February 1, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants