diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-14 13:44:30 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-14 13:44:30 +0200 |
commit | d5b98e2ef4b322c2203d6cd150a3a4080de5e1f4 (patch) | |
tree | d2bcc45fa5e3352885c8f709155d5217ab0a6555 | |
parent | 9fda609a60506f4c1f73f0034cafd2b3434f4df3 (diff) |
dd: fix status=none. Closes 10066
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/dd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c index 7d980f1c4..630852205 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c @@ -133,9 +133,8 @@ enum { /* end of input flags */ FLAG_TWOBUFS = (1 << 6) * ENABLE_FEATURE_DD_IBS_OBS, FLAG_COUNT = 1 << 7, - FLAG_STATUS = 1 << 8, - FLAG_STATUS_NONE = 1 << 9, - FLAG_STATUS_NOXFER = 1 << 10, + FLAG_STATUS_NONE = 1 << 8, + FLAG_STATUS_NOXFER = 1 << 9, }; static void dd_output_status(int UNUSED_PARAM cur_signal) @@ -396,7 +395,7 @@ int dd_main(int argc UNUSED_PARAM, char **argv) n = index_in_strings(status_words, val); if (n < 0) bb_error_msg_and_die(bb_msg_invalid_arg_to, val, "status"); - G.flags |= FLAG_STATUS << n; + G.flags |= FLAG_STATUS_NONE << n; /*continue;*/ } #endif |