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

creat: set flags in opened file descriptor #21

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

fischerling
Copy link
Contributor

creat.2 is supposed to be equivalent to open.2 with the flags O_WRONLY|O_CREAT|O_TRUNC.

However, in MentOS the fd returned by creat.2 has no flags whatsoever and is thus not writable.

Set the flags of the file descriptor before returning it.

creat.2 is supposed to be equivalent to open.2 with the
flags O_WRONLY|O_CREAT|O_TRUNC.

However, in MentOS the fd returned by creat.2 has no flags whatsoever
and is thus not writable.

Set the flags of the file descriptor before returning it.
@Galfurian Galfurian merged commit 1832c77 into mentos-team:master Jan 29, 2024
17 checks passed
@fischerling fischerling deleted the fix-creat-fd-flags branch February 29, 2024 10:52
@Galfurian Galfurian added the bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants