svn commit: trunk/busybox/libbb

landley at busybox.net landley at busybox.net
Mon Feb 13 19:40:45 UTC 2006


Author: landley
Date: 2006-02-13 11:40:43 -0800 (Mon, 13 Feb 2006)
New Revision: 13956

Log:
Bug fix from Kim B. Heino, manifested via:
echo > foo && zip foo.zip foo && ./busybox unzip foo.zip


Modified:
   trunk/busybox/libbb/copyfd.c


Changeset:
Modified: trunk/busybox/libbb/copyfd.c
===================================================================
--- trunk/busybox/libbb/copyfd.c	2006-02-13 19:16:41 UTC (rev 13955)
+++ trunk/busybox/libbb/copyfd.c	2006-02-13 19:40:43 UTC (rev 13956)
@@ -44,6 +44,7 @@
 				break;
 			}
 			total += wrote;
+			if (total == size) status = 0;
 		} else if (xread < 0) {
 			bb_perror_msg(bb_msg_read_error);
 			break;




More information about the busybox-cvs mailing list