summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2010-02-07 23:28:23 +0100
committerDenys Vlasenko2010-02-07 23:28:23 +0100
commit3205c24a822c61d74b0f58090606433c52bc4796 (patch)
tree747f2b21032696c653b53126b970d95aeda2c145
parenteb255752c14634f48c25e634fcf17b2479a160cc (diff)
downloadbusybox-3205c24a822c61d74b0f58090606433c52bc4796.zip
busybox-3205c24a822c61d74b0f58090606433c52bc4796.tar.gz
shaNNNsum: accept and ignore -b and -t
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/md5_sha1_sum.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index a64026d..3d50bb0 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -101,8 +101,10 @@ int md5_sha1_sum_main(int argc UNUSED_PARAM, char **argv)
unsigned flags;
/*hash_algo_t hash_algo = applet_name[3];*/
- if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK)
- flags = getopt32(argv, "scw");
+ if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK) {
+ /* -b "binary", -t "text" are ignored (shaNNNsum compat) */
+ flags = getopt32(argv, "scwbt");
+ }
else optind = 1;
argv += optind;
//argc -= optind;