diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-02-27 13:57:18 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-27 13:57:18 -0800 |
commit | 3f7ebc6ece46f1c23480d094688b8b5f24eb345c (patch) | |
tree | 1c03f40032ba3d6af427a10ffd412f368bb01641 /builtin | |
parent | Merge branch 'vn/xdiff-func-context' (diff) | |
parent | tempfile: set errno to a known value before calling ferror() (diff) | |
download | tgif-3f7ebc6ece46f1c23480d094688b8b5f24eb345c.tar.xz |
Merge branch 'jk/tempfile-ferror-fclose-confusion'
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 'builtin')
0 files changed, 0 insertions, 0 deletions