ref: 638b82129e750940b4d886c17c7c0ba9d8dbceac
parent: 02d1725d710b1f786f75c4f3cadc14cff37d5772
author: Michael Forney <mforney@mforney.org>
date: Fri Mar 18 19:45:43 EDT 2022
git/fetch: use read for reading packfiles instead of readn
--- a/sys/src/cmd/git/fetch.c
+++ b/sys/src/cmd/git/fetch.c
@@ -279,7 +279,7 @@
fprint(2, "fetching...\n");
packsz = 0;
while(1){
- n = readn(c->rfd, buf, sizeof buf);
+ n = read(c->rfd, buf, sizeof buf);
if(n == 0)
break;
if(n == -1 || write(pfd, buf, n) != n)