aboutsummaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-02-27 13:57:18 -0800
committerJunio C Hamano <gitster@pobox.com>2017-02-27 13:57:18 -0800
commit3f7ebc6ece46f1c23480d094688b8b5f24eb345c (patch)
tree1c03f40032ba3d6af427a10ffd412f368bb01641 /transport.c
parent9720b302479639253518d39ec758241d91275ee6 (diff)
parent7e8c9355b7aa61948275c8144dff6857f4b0ee51 (diff)
downloadgit-3f7ebc6ece46f1c23480d094688b8b5f24eb345c.tar.gz
git-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 'transport.c')
0 files changed, 0 insertions, 0 deletions