mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
dd: fix newly introduced bug (introduced by me)
This commit is contained in:
parent
6b74b0241c
commit
2b03e5ef31
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user