Skip to content

git_futils: don't O_EXCL and O_TRUNC#4175

Merged
pks-t merged 1 commit intomasterfrom
ethomson/dont_trunc_and_excl
Mar 24, 2017
Merged

git_futils: don't O_EXCL and O_TRUNC#4175
pks-t merged 1 commit intomasterfrom
ethomson/dont_trunc_and_excl

Conversation

@ethomson
Copy link
Copy Markdown
Member

O_EXCL and O_TRUNC are mutually exclusive flags to open(2); you can't truncate a file if you're asserting that it can't exist in the first place. Drop O_TRUNC.

Fixes #4017

`O_EXCL` and `O_TRUNC` are mutually exclusive flags to open(2); you can't
truncate a file if you're asserting that it can't exist in the first place.
Drop `O_TRUNC`.
@pks-t pks-t merged commit 1d39a60 into master Mar 24, 2017
@pks-t
Copy link
Copy Markdown
Member

pks-t commented Mar 24, 2017

Looks good! 👍

@ethomson ethomson deleted the ethomson/dont_trunc_and_excl branch January 9, 2019 10:18
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