aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-24 14:55:23 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-24 14:55:23 +0000
commit708d74b5fe4e29c55f76b79bc71aa6ae532d38fe (patch)
tree279f3ff5c1a47d36ad4eec248240f11c7ef8d438 /libbb
parent5d8a7711b9cf654949e1aea4ccf3ed47b7bfa478 (diff)
downloadbusybox-w32-708d74b5fe4e29c55f76b79bc71aa6ae532d38fe.tar.gz
busybox-w32-708d74b5fe4e29c55f76b79bc71aa6ae532d38fe.tar.bz2
busybox-w32-708d74b5fe4e29c55f76b79bc71aa6ae532d38fe.zip
tar: cry murder and bail out if file shrinks under us while we tar it up
git-svn-id: svn://busybox.net/trunk/busybox@16653 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/copyfd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c
index 87126eb72..601c51ce4 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)
46 } else if (rd < 0) { 46 } else if (rd < 0) {
47 bb_perror_msg(bb_msg_read_error); 47 bb_perror_msg(bb_msg_read_error);
48 break; 48 break;
49 } else if (rd == 0) { 49 } else { /* eof - all done. */
50 /* All done. */
51 status = 0; 50 status = 0;
52 break; 51 break;
53 } 52 }