diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-03-24 23:31:21 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-24 23:31:21 +0100 |
commit | b0de55541024a39ece47cf7a1eebdbde08ba978f (patch) | |
tree | 5b652d49aaab85a7571aa41978f39dc80c1a6b48 /sha1_file.c | |
parent | Merge branch 'maint-1.6.1' into maint (diff) | |
parent | Merge branch 'maint-1.6.0' into maint-1.6.1 (diff) | |
download | git-b0de55541024a39ece47cf7a1eebdbde08ba978f.tar.xz git-b0de55541024a39ece47cf7a1eebdbde08ba978f.zip |
Merge branch 'maint-1.6.1' into maint
* maint-1.6.1:
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c index 032300c4c6..a07aa4e5c4 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2301,7 +2301,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 '/' */ |