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

Do not report size of the object that cannot be written in local-pull.c

Reporting st.st_size with %ld is simply wrong, as H Peter Anvin
says.  No other pull drivers report the failure with size
anyway, so yank it out.  This is a cop-out patch but should be
good enough.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 8ac069ac
......@@ -71,8 +71,7 @@ int fetch(unsigned char *sha1)
munmap(map, st.st_size);
close(ofd);
if (status)
fprintf(stderr, "cannot write %s (%ld bytes)\n",
dest_filename, st.st_size);
fprintf(stderr, "cannot write %s\n", dest_filename);
else
pull_say("copy %s\n", hex);
return status;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册