X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=unpack-file.c;h=ac9cbf7cd8ed1367151de0e8b96668f498b7f1a1;hb=6ea71fe7d36cf5b81c2100d97a822ecf0bc04746;hp=75cd2f1a6adf3ea773a6acc3f1e7f122e30676e5;hpb=5ab2f7b2ce8c51e8c47a4cc57c30fa7cae239005;p=git.git diff --git a/unpack-file.c b/unpack-file.c index 75cd2f1a6..ac9cbf7cd 100644 --- a/unpack-file.c +++ b/unpack-file.c @@ -17,7 +17,7 @@ static char *create_temp_file(unsigned char *sha1) strcpy(path, ".merge_file_XXXXXX"); fd = xmkstemp(path); if (write_in_full(fd, buf, size) != size) - die("unable to write temp-file"); + die_errno("unable to write temp-file"); close(fd); return path; }