transport-helper: use xread instead of read
commitc14e5a1a5018f4407390488dfea387e5dc81c817
authorRandall S. Becker <randall.becker@nexbridge.ca>
Thu, 3 Jan 2019 21:03:48 +0000 (3 16:03 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Jan 2019 21:58:25 +0000 (3 13:58 -0800)
treeb29f06940805bf8ce3f924ea33db1889044ae520
parentb21ebb671bb7dea8d342225f0d66c41f4e54d5ca
transport-helper: use xread instead of read

This fix was needed on HPE NonStop NSE and NSX where SSIZE_MAX is less than
BUFFERSIZE resulting in EINVAL. The call to read in transport-helper.c
was the only place outside of wrapper.c where it is used instead of xread.

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c