svn commit: trunk/busybox/coreutils
vda at busybox.net
vda at busybox.net
Sun Jul 29 14:59:08 UTC 2007
Author: vda
Date: 2007-07-29 07:59:06 -0700 (Sun, 29 Jul 2007)
New Revision: 19327
Log:
dd: fix newly introduced bug (introduced by me)
Modified:
trunk/busybox/coreutils/dd.c
Changeset:
Modified: trunk/busybox/coreutils/dd.c
===================================================================
--- trunk/busybox/coreutils/dd.c 2007-07-29 14:45:26 UTC (rev 19326)
+++ trunk/busybox/coreutils/dd.c 2007-07-29 14:59:06 UTC (rev 19327)
@@ -268,7 +268,7 @@
goto die_outfile;
}
- while ((flags & FLAG_COUNT) && (G.in_full + G.in_part != count)) {
+ while (!(flags & FLAG_COUNT) || (G.in_full + G.in_part != count)) {
if (flags & FLAG_NOERROR) /* Pre-zero the buffer if conv=noerror */
memset(ibuf, 0, ibs);
n = safe_read(ifd, ibuf, ibs);
More information about the busybox-cvs
mailing list