projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b74b02
)
dd: fix newly introduced bug (introduced by me)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 29 Jul 2007 14:59:06 +0000
(14:59 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 29 Jul 2007 14:59:06 +0000
(14:59 -0000)
coreutils/dd.c
patch
|
blob
|
history
diff --git
a/coreutils/dd.c
b/coreutils/dd.c
index 7247f55e0fd03c5419108511e940df9638ed32e6..b7979d62f90292969c289a3cedfd48680147d762 100644
(file)
--- a/
coreutils/dd.c
+++ b/
coreutils/dd.c
@@
-268,7
+268,7
@@
int dd_main(int argc, char **argv)
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);