提交 d1b2ddc8 编写于 作者: J Junio C Hamano

index-pack: write-or-die instead of unchecked write-in-full.

Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 f6aa66cb
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册