lineedit: do not hang on error, but return error indicator.
[oweals/busybox.git] / coreutils / md5_sha1_sum.c
index a64026d3dd5a90c8e5019eb750b9ebcf8eeed039..646f8bd107096d5e14a9e21320d1184d34531fe4 100644 (file)
@@ -3,7 +3,7 @@
  *  Copyright (C) 2003 Glenn L. McGrath
  *  Copyright (C) 2003-2004 Erik Andersen
  *
- * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
 #include "libbb.h"
@@ -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;