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

Avoid a very unlikely race when opening a temporary file #118

Closed
wants to merge 1 commit into from
Closed

Avoid a very unlikely race when opening a temporary file #118

wants to merge 1 commit into from

Conversation

amenonsen
Copy link
Contributor

The file could be created between the time the -e test fails and open
"+>" is called, which would clobber the file. Using O_CREAT|O_EXCL to
open the file prevents the problem.

The file could be created between the time the -e test fails and open
"+>" is called, which would clobber the file. Using O_CREAT|O_EXCL to
open the file prevents the problem.
@kraih
Copy link
Member

kraih commented Apr 20, 2011

Thanks, applied.

@kraih kraih closed this Apr 20, 2011
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.

None yet

2 participants