From 3dc07fb7e4acf1c5a2a5b880307961fd1afdb096 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 21 Jul 2009 09:36:15 +0000
Subject: [PATCH] abuild-tar: fix total counter for splice

---
 abuild-tar.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/abuild-tar.c b/abuild-tar.c
index c652e04e1e6c..1293ddc217d6 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)
-- 
GitLab