tsbase: update tar patch - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 4205a4eb348f5b8784f7bb0393261743d56d77d9
(DIR) parent aafc389decda0d3a3aba8a1d01cf99f97d3b8952
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Fri, 3 Feb 2017 19:02:27 +0100
sbase: update tar patch
Diffstat:
M sbase/patches/sbase-tarreadall-201… | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/sbase/patches/sbase-tarreadall-20170203-3bc2ffc.diff b/sbase/patches/sbase-tarreadall-20170203-3bc2ffc.diff
t@@ -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)
t@@ -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;