Re: [PATCH v2 4/7] avoid looking at errno for short read_in_full() returns

2017-09-26 Thread Junio C Hamano
Jeff King writes: > When a caller tries to read a particular set of bytes via > read_in_full(), there are three possible outcomes: > > 1. An error, in which case -1 is returned and errno is > set. > > 2. A short read, in which fewer bytes are returned and > errno is unspecified (we

[PATCH v2 4/7] avoid looking at errno for short read_in_full() returns

2017-09-26 Thread Jeff King
When a caller tries to read a particular set of bytes via read_in_full(), there are three possible outcomes: 1. An error, in which case -1 is returned and errno is set. 2. A short read, in which fewer bytes are returned and errno is unspecified (we never saw a read error, so we