diff options
author | Rob Landley <rob@landley.net> | 2016-07-04 08:32:42 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-07-04 08:32:42 -0500 |
commit | 0ed17f12764268006c945f49fe3103952b20a0fa (patch) | |
tree | 56f56c49f98629ce5abcafd7973ff50ac85ef54b | |
parent | bf950cde6646dfbf4e7550184cde22d4b22185c4 (diff) | |
download | toybox-0ed17f12764268006c945f49fe3103952b20a0fa.tar.gz |
Now that we're using the adjusted option string, need to skip placeholders in [groups].
-rw-r--r-- | lib/args.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -360,6 +360,7 @@ void parse_optflaglist(struct getoptflagstate *gof) if (!opt) break; if (bits&(1<<i)) opt->dex[idx] |= bits&~(1<<i); } else { + if (*options==1) break; if (CFG_TOYBOX_DEBUG && !opt) error_exit("[] unknown target %c", *options); if (opt->c == *options) { |