diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-07-28 10:34:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-28 10:34:41 -0700 |
commit | d0b6966e3dc0a1aca8b7aa89dd0f95cda50d21f2 (patch) | |
tree | 180fba4d17eac6d8cdc52d80ecc99edae01cd2ab /worktree.c | |
parent | c97268c822077ba414f90f6ba357fab170bb3986 (diff) | |
parent | deb9c1575c456b9d12ff05fdd2bec516dfb34ae4 (diff) | |
download | git-d0b6966e3dc0a1aca8b7aa89dd0f95cda50d21f2.tar.gz |
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
Diffstat (limited to 'worktree.c')
0 files changed, 0 insertions, 0 deletions