copy_fd: close ifd on error
authorSam Ravnborg <sam@ravnborg.org>
Tue, 27 Dec 2005 08:19:05 +0000 (09:19 +0100)
committerJunio C Hamano <junkio@cox.net>
Tue, 27 Dec 2005 18:49:25 +0000 (10:49 -0800)
commit08337a97a2756cd89ab611444f37d67250d3c05b
treefbcd5fe3b151c0b1412903550b44904b62defb34
parent975b31dc6e12fba8f7b067ddbe32230995e05400
copy_fd: close ifd on error

In copy_fd when write fails we ought to close input file descriptor.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
copy.c