Skip to content

Use O_EXCL to create files atomically.#2

Open
zevweiss wants to merge 1 commit intoPhotoBackup:masterfrom
zevweiss:atomic-create
Open

Use O_EXCL to create files atomically.#2
zevweiss wants to merge 1 commit intoPhotoBackup:masterfrom
zevweiss:atomic-create

Conversation

@zevweiss
Copy link

This avoids the TOCTTOU race of stat-then-create in the previous code.

This avoids the TOCTTOU race of stat-then-create in the previous code.
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.

1 participant