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

Disallow opening directory with rights::fd_write #4794

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

yagehu
Copy link
Contributor

@yagehu yagehu commented Jun 4, 2024

This commit changes path_open such that opening an existing directory with the rights::fd_write flag set returns an error isdir. This behavior is consistent with other runtimes.

fixes #4766

This commit changes `path_open` such that opening an existing directory
with the `rights::fd_write` flag set returns an error `isdir`.  This
behavior is consistent with other runtimes.

fixes wasmerio#4766
@syrusakbary syrusakbary merged commit b24c45e into wasmerio:main Jun 4, 2024
62 checks passed
@yagehu yagehu deleted the open-dir-write branch June 4, 2024 16:17
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.

Should not be able to path_open directory with rights::fd_write
2 participants