projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb25575
)
shaNNNsum: accept and ignore -b and -t
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 7 Feb 2010 22:28:23 +0000
(23:28 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 7 Feb 2010 22:28:23 +0000
(23:28 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/md5_sha1_sum.c
patch
|
blob
|
history
diff --git
a/coreutils/md5_sha1_sum.c
b/coreutils/md5_sha1_sum.c
index a64026d3dd5a90c8e5019eb750b9ebcf8eeed039..3d50bb0f5caec8f66ca099c7cf59d98f06533fbd 100644
(file)
--- 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;