projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6aa66c
)
index-pack: write-or-die instead of unchecked write-in-full.
author
Junio C Hamano
<junkio@cox.net>
Thu, 11 Jan 2007 21:15:51 +0000
(13:15 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 11 Jan 2007 21:19:31 +0000
(13:19 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
index-pack.c
patch
|
blob
|
history
diff --git
a/index-pack.c
b/index-pack.c
index 8d10d6ba243ee99d698ddbb7651a10422cc5c9ba..72e0962415d74c856917f6bb56e6fa2fea950c25 100644
(file)
--- a/
index-pack.c
+++ b/
index-pack.c
@@
-814,7
+814,7
@@
static void final(const char *final_pack_name, const char *curr_pack_name,
char buf[48];
int len = snprintf(buf, sizeof(buf), "%s\t%s\n",
report, sha1_to_hex(sha1));
- write_
in_full
(1, buf, len);
+ write_
or_die
(1, buf, len);
/*
* Let's just mimic git-unpack-objects here and write