summaryrefslogtreecommitdiff
path: root/abuild-tar.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-21 09:36:15 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-21 09:36:15 +0000
commit3dc07fb7e4acf1c5a2a5b880307961fd1afdb096 (patch)
treeb98343c49123e234ae9868307ffbfbda156f8f7b /abuild-tar.c
parent43f32cdeef07eb33aee2c9b87fb51849faf093a3 (diff)
downloadabuild-3dc07fb7e4acf1c5a2a5b880307961fd1afdb096.tar.gz
abuild-3dc07fb7e4acf1c5a2a5b880307961fd1afdb096.tar.bz2
abuild-3dc07fb7e4acf1c5a2a5b880307961fd1afdb096.tar.xz
abuild-3dc07fb7e4acf1c5a2a5b880307961fd1afdb096.zip
abuild-tar: fix total counter for splice
Diffstat (limited to 'abuild-tar.c')
-rw-r--r--abuild-tar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/abuild-tar.c b/abuild-tar.c
index c652e04..1293ddc 100644
--- a/abuild-tar.c
+++ b/abuild-tar.c
@@ -159,6 +159,7 @@ static ssize_t full_splice(int from_fd, int to_fd, size_t count)
if (n <= 0)
break;
count -= n;
+ total += n;
} while (1);
if (total == 0 && n < 0)