diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-21 15:03:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-21 15:03:28 -0700 |
commit | f63df942a3f4245970192161dab259922819e3b5 (patch) | |
tree | ff1d6a0dc1219487ca8daf7fe6f660574a5d05b9 /contrib/stats/mailmap.pl | |
parent | Merge branch 'rl/remote-allow-missing-branch-name-merge' into maint (diff) | |
parent | tempfile: set errno to a known value before calling ferror() (diff) | |
download | tgif-f63df942a3f4245970192161dab259922819e3b5.tar.xz |
Merge branch 'jk/tempfile-ferror-fclose-confusion' into maint
A caller of tempfile API that uses stdio interface to write to
files may ignore errors while writing, which is detected when
tempfile is closed (with a call to ferror()). By that time, the
original errno that may have told us what went wrong is likely to
be long gone and was overwritten by an irrelevant value.
close_tempfile() now resets errno to EIO to make errno at least
predictable.
* jk/tempfile-ferror-fclose-confusion:
tempfile: set errno to a known value before calling ferror()
Diffstat (limited to 'contrib/stats/mailmap.pl')
0 files changed, 0 insertions, 0 deletions