Patch from Shaun Jackman, set optind by hand if we don't call getopt.

This commit is contained in:
Rob Landley 2006-07-26 16:10:39 +00:00
parent e1a0f5372f
commit 7cc6b69bb0

View File

@ -98,6 +98,7 @@ static int hash_files(int argc, char **argv, hash_algo_t hash_algo)
if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK)
flags = bb_getopt_ulflags(argc, argv, "scw");
else optind = 1;
if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK && !(flags & FLAG_CHECK)) {
if (flags & FLAG_SILENT) {