diff options
-rw-r--r-- | libbb/copyfd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c index 0976180af..515253148 100644 --- a/libbb/copyfd.c +++ b/libbb/copyfd.c | |||
@@ -44,6 +44,7 @@ static ssize_t bb_full_fd_action(int src_fd, int dst_fd, size_t size) | |||
44 | break; | 44 | break; |
45 | } | 45 | } |
46 | total += wrote; | 46 | total += wrote; |
47 | if (total == size) status = 0; | ||
47 | } else if (xread < 0) { | 48 | } else if (xread < 0) { |
48 | bb_perror_msg(bb_msg_read_error); | 49 | bb_perror_msg(bb_msg_read_error); |
49 | break; | 50 | break; |