copy.c: copy_fd - correctly report write errors
authorAriel Badichi <abadichi@bezeqint.net>
Wed, 23 Apr 2008 01:05:29 +0000 (04:05 +0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Apr 2008 04:21:08 +0000 (21:21 -0700)
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>
No differences found