← Commit list

d5b98e2ef

Denys Vlasenko
Denys Vlasenko
2017-07-14
SUCCESS Duration: 141s

Subject

dd: fix status=none. Closes 10066

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/dd.c+3 -4
@@ -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