Linus Torvalds <torvalds@xxxxxxxx> wrote: > I actually think "read_in_full()" should get the same loving tender care > too, for all the same reasons. I think "read_or_die()" is totally broken. > Anybody who uses "read_or_die()" is buggy by definition, since it will do > a partial read AND NOT RETURN ANY INDICATION THAT IT WAS PARTIAL! AFAIK the only user of read_or_die is sha1_file.c when it reads in the 12 byte pack header and the 20 byte pack trailer to "quickly" verify the packfile is sane before using it. If I recall correctly it was correct when I created it, but the read_in_full refactoring changed it. -- Shawn. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html