diff options
| author | Junio C Hamano <junkio@cox.net> | 2005-12-27 18:08:58 -0800 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2005-12-27 18:08:58 -0800 |
| commit | 17dff84b5e745ba17a5b3ae5591d79f96b165d48 (patch) | |
| tree | 3917a86a3c560fdfb5027fe2428e918573865a93 /copy.c | |
| parent | GIT 1.0.5 (diff) | |
| parent | Do not mark tags fetched via --tags flag as mergeable (diff) | |
| download | git-1.0.6.tar.gz git-1.0.6.zip | |
GIT 1.0.6v1.0.6
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'copy.c')
| -rw-r--r-- | copy.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -22,11 +22,14 @@ int copy_fd(int ifd, int ofd) buf += written; len -= written; } - else if (!written) + else if (!written) { + close(ifd); return error("copy-fd: write returned 0"); - else + } else { + close(ifd); return error("copy-fd: write returned %s", strerror(errno)); + } } } close(ifd); |
