shaNNNsum: accept and ignore -b and -t
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
eb255752c1
commit
3205c24a82
@ -101,8 +101,10 @@ int md5_sha1_sum_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
unsigned flags;
|
unsigned flags;
|
||||||
/*hash_algo_t hash_algo = applet_name[3];*/
|
/*hash_algo_t hash_algo = applet_name[3];*/
|
||||||
|
|
||||||
if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK)
|
if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK) {
|
||||||
flags = getopt32(argv, "scw");
|
/* -b "binary", -t "text" are ignored (shaNNNsum compat) */
|
||||||
|
flags = getopt32(argv, "scwbt");
|
||||||
|
}
|
||||||
else optind = 1;
|
else optind = 1;
|
||||||
argv += optind;
|
argv += optind;
|
||||||
//argc -= optind;
|
//argc -= optind;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user