aboutsummaryrefslogtreecommitdiff
path: root/coreutils/md5_sha1_sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/md5_sha1_sum.c')
-rw-r--r--coreutils/md5_sha1_sum.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index bcccdd64f..89d6cec0b 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -258,15 +258,14 @@ int md5_sha1_sum_main(int argc UNUSED_PARAM, char **argv)
258#endif 258#endif
259 259
260 if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK) { 260 if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK) {
261 /* -s and -w require -c */
262 opt_complementary = "s?c:w?c";
263 /* -b "binary", -t "text" are ignored (shaNNNsum compat) */ 261 /* -b "binary", -t "text" are ignored (shaNNNsum compat) */
262 /* -s and -w require -c */
264#if ENABLE_SHA3SUM 263#if ENABLE_SHA3SUM
265 if (applet_name[3] == HASH_SHA3) 264 if (applet_name[3] == HASH_SHA3)
266 flags = getopt32(argv, "scwbta:+", &sha3_width); 265 flags = getopt32(argv, "^" "scwbta:+" "\0" "s?c:w?c", &sha3_width);
267 else 266 else
268#endif 267#endif
269 flags = getopt32(argv, "scwbt"); 268 flags = getopt32(argv, "^" "scwbt" "\0" "s?c:w?c");
270 } else { 269 } else {
271#if ENABLE_SHA3SUM 270#if ENABLE_SHA3SUM
272 if (applet_name[3] == HASH_SHA3) 271 if (applet_name[3] == HASH_SHA3)