author | Eric Wong <normalperson@yhbt.net> | |
Thu, 11 Jan 2007 21:43:40 +0000 (13:43 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 11 Jan 2007 22:49:45 +0000 (14:49 -0800) | ||
commit | 3b97fee23df7ec78eea77151fcc0885ec3191950 | |
tree | 7fc738d5d6c108e5a93a9861ecd01f8b7a6ec25d | tree | snapshot |
parent | 9130ac1e1966adb9922e64f645730d0d45383495 | commit | diff |
Avoid errors and warnings when attempting to do I/O on zero bytes
Unfortunately, while {read,write}_in_full do take into account
zero-sized reads/writes; their die and whine variants do not.
I have a repository where there are zero-sized files in
the history that was triggering these things.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Unfortunately, while {read,write}_in_full do take into account
zero-sized reads/writes; their die and whine variants do not.
I have a repository where there are zero-sized files in
the history that was triggering these things.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c | diff | blob | history | |
write_or_die.c | diff | blob | history |