abuild-tar: fix total counter for splice
This commit is contained in:
parent
43f32cdeef
commit
3dc07fb7e4
@ -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)
|
||||
|
Reference in New Issue
Block a user