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

Fix O_CREAT flag in open syscall #330

Merged
merged 1 commit into from
Dec 22, 2023
Merged

Conversation

raccog
Copy link
Contributor

@raccog raccog commented Dec 21, 2023

In the open syscall, a new file would be created if the opened file didn't exist and the O_CREAT flag was NOT set.

This has been fixed to create a new file only if the O_CREAT flag IS set. This matches the original Unix flag.

@mortbopet mortbopet merged commit bf63ddc into mortbopet:master Dec 22, 2023
6 checks passed
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.

2 participants