copy.c: copy_fd - correctly report write errors
commit8b1f6de854ae95eb3f4225a71aad29ca086cfd2e
authorAriel Badichi <abadichi@bezeqint.net>
Wed, 23 Apr 2008 01:05:29 +0000 (23 04:05 +0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Apr 2008 04:21:08 +0000 (22 21:21 -0700)
treec1baf44b966272055beebd49045f2c9244ec6a82
parent82881b38235d0a46a4486dc5dc819c5d0ee3f2c1
copy.c: copy_fd - correctly report write errors

Previously, the errno could have been lost due to an intervening
close() call.

This patch also contains minor cosmetic changes.

Signed-off-by: Ariel Badichi <abadichi@bezeqint.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
copy.c