From 638b82129e750940b4d886c17c7c0ba9d8dbceac Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 18 Mar 2022 23:45:43 +0000 Subject: [PATCH] git/fetch: use read for reading packfiles instead of readn --- sys/src/cmd/git/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/git/fetch.c b/sys/src/cmd/git/fetch.c index 5951cfaf7..d162ac7da 100644 --- a/sys/src/cmd/git/fetch.c +++ b/sys/src/cmd/git/fetch.c @@ -279,7 +279,7 @@ fetchpack(Conn *c) 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)