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
This commit is contained in:
@ -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 '/' */
|
||||
|
||||
Reference in New Issue
Block a user