summaryrefslogtreecommitdiff
path: root/libbb/copyfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/copyfd.c')
-rw-r--r--libbb/copyfd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c
index 87126eb..601c51c 100644
--- a/libbb/copyfd.c
+++ b/libbb/copyfd.c
@@ -46,8 +46,7 @@ static off_t bb_full_fd_action(int src_fd, int dst_fd, off_t size)
} else if (rd < 0) {
bb_perror_msg(bb_msg_read_error);
break;
- } else if (rd == 0) {
- /* All done. */
+ } else { /* eof - all done. */
status = 0;
break;
}