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 05:45:57 +0300
committerJunio C Hamano <gitster@pobox.com>2009-03-25 05:45:57 +0300
commit89fbda24256157cc43848488429fd20cf3bb21ab (patch)
tree0e896125f1dfc70eed99f703b22494540c9a5000 /sha1_file.c
parent7c98213abc2a834f16646b9fe842f6e63c7ddb81 (diff)
parent389d17677187f5e996022b7b8e0faf800608cb3a (diff)
Merge branch 'maint'
* maint: Increase the size of the die/warning buffer to avoid truncation 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 456317356f..54972f97e0 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -2287,7 +2287,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 '/' */