mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Patch from Shaun Jackman, set optind by hand if we don't call getopt.
This commit is contained in:
parent
e1a0f5372f
commit
7cc6b69bb0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user