mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit 4205a4eb348f5b8784f7bb0393261743d56d77d9
parent aafc389decda0d3a3aba8a1d01cf99f97d3b8952
Author: z3bra <contactatz3bradotorg>
Date:   Fri Feb  3 19:02:27 +0100

sbase: update tar patch

Diffstat:
sbase/patches/sbase-tarreadall-20170203-3bc2ffc.diff | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sbase/patches/sbase-tarreadall-20170203-3bc2ffc.diff b/sbase/patches/sbase-tarreadall-20170203-3bc2ffc.diff @@ -1,5 +1,5 @@ diff --git a/tar.c b/tar.c -index 4a81f8f..f2649f1 100644 +index 4a81f8f..ca2c2af 100644 --- a/tar.c +++ b/tar.c @@ -155,16 +155,21 @@ decomp(int fd, const char *tool, const char *flags) @@ -15,12 +15,13 @@ index 4a81f8f..f2649f1 100644 + r = read(fd, tmp + s, n - s); + s += r; if (r < 0) { - if (errno == EINTR) +- if (errno == EINTR) ++ if (errno == EINTR || errno == EAGAIN) goto again; eprintf("read:"); } - return r; -+ if (s < n) ++ if (r && s < n) + goto again; + + return s;