Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-25 01:31:15 +0300
committerJunio C Hamano <gitster@pobox.com>2009-03-25 01:31:15 +0300
commit2a5643da732b70004920f75efa1ebdc2a6ed1689 (patch)
tree145937f2d3fb693771715732cd9f7d34e8941f60 /sha1_file.c
parent0abd52772bcb82a7293bb1c2bd351fbe303abaf1 (diff)
parente8bd78c3fcba35b8344ea6bab6218b793e507ea3 (diff)
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0: close_sha1_file(): make it easier to diagnose errors avoid possible overflow in delta size filtering computation
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index b63f842cbd..3d93d936e4 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -2298,7 +2298,7 @@ static void close_sha1_file(int fd)
fsync_or_die(fd, "sha1 file");
fchmod(fd, 0444);
if (close(fd) != 0)
- die("unable to write sha1 file");
+ die("error when closing sha1 file (%s)", strerror(errno));
}
/* Size of directory component, including the ending '/' */