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

Respect oflags::excl when opening all files #4793

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

yagehu
Copy link
Contributor

@yagehu yagehu commented Jun 3, 2024

This commit changes path_open to respect oflags::excl when opening all types of files. Per POSIX, the behavior of O_EXCL is unspecified in the absence of O_CREAT, hence the addition of the oflags::create check.

fixes #4791

This commit changes `path_open` to respect `oflags::excl` when opening
all types of files.  Per POSIX, the behavior of `O_EXCL` is unspecified
in the absence of `O_CREAT`, hence the addition of the `oflags::create`
check.

fixes wasmerio#4791
@syrusakbary syrusakbary merged commit 6790570 into wasmerio:main Jun 4, 2024
62 checks passed
@yagehu yagehu deleted the open-dir-excl 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.

path_open does not respect oflags::excl on directories
2 participants