mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
"git notes merge" had a code to see if a path exists (and fails if it does) and then open the path for writing (when it doesn't). Replace it with open with O_EXCL. * rs/notes-merge-no-toctou: notes-merge: use O_EXCL to avoid overwriting existing files
23 KiB
23 KiB