From: Junio C Hamano Date: Thu, 28 Jul 2016 17:34:41 +0000 (-0700) Subject: Merge branch 'rs/notes-merge-no-toctou' X-Git-Tag: v2.10.0-rc0~79 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d0b6966e3dc0a1aca8b7aa89dd0f95cda50d21f2 Merge branch 'rs/notes-merge-no-toctou' "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 --- d0b6966e3dc0a1aca8b7aa89dd0f95cda50d21f2