summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.16.0-md5_sha_compat.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-02-24 09:13:43 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-02-24 09:13:43 +0100
commita080cc0ff48ad2f4ead2aa7a9932323379f6a37d (patch)
treeb3513287e1c54b68c614405d5f4148e6b3046415 /package/busybox/busybox-1.16.0-md5_sha_compat.patch
parentf4f157041eb53f674d21d9a323f7245bc14fd844 (diff)
busybox: add 1.16.0 fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.16.0-md5_sha_compat.patch')
-rw-r--r--package/busybox/busybox-1.16.0-md5_sha_compat.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.16.0-md5_sha_compat.patch b/package/busybox/busybox-1.16.0-md5_sha_compat.patch
new file mode 100644
index 000000000..e982c0efb
--- /dev/null
+++ b/package/busybox/busybox-1.16.0-md5_sha_compat.patch
@@ -0,0 +1,16 @@
+diff -urpN busybox-1.16.0/coreutils/md5_sha1_sum.c busybox-1.16.0-md5_sha_compat/coreutils/md5_sha1_sum.c
+--- busybox-1.16.0/coreutils/md5_sha1_sum.c 2010-01-25 01:59:38.000000000 +0100
++++ busybox-1.16.0-md5_sha_compat/coreutils/md5_sha1_sum.c 2010-02-21 01:53:28.000000000 +0100
+@@ -101,8 +101,10 @@ int md5_sha1_sum_main(int argc UNUSED_PA
+ 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;