mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-08 15:37:34 +00:00
abuild-tar: fix splice arguments
This commit is contained in:
parent
ed2733c65b
commit
43f32cdeef
@ -153,7 +153,7 @@ static ssize_t full_splice(int from_fd, int to_fd, size_t count)
|
|||||||
|
|
||||||
total = 0;
|
total = 0;
|
||||||
do {
|
do {
|
||||||
n = splice(from_fd, NULL, to_fd, count, 0);
|
n = splice(from_fd, NULL, to_fd, NULL, count, 0);
|
||||||
if (n < 0 && errno == EINTR)
|
if (n < 0 && errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
if (n <= 0)
|
if (n <= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user