summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dd/dd.c')
-rw-r--r--bin/dd/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index 01b66fc..9d0f9b1 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -358,7 +358,7 @@ dd_in(void)
* than noerror, notrunc or sync are specified, the block
* is output without buffering as it is read.
*/
- if (ddflags & C_BS) {
+ if ((ddflags & ~(C_NOERROR | C_NOTRUNC | C_SYNC)) == C_BS) {
out.dbcnt = in.dbcnt;
dd_out(1);
in.dbcnt = 0;
OpenPOWER on IntegriCloud