aboutsummaryrefslogtreecommitdiff
path: root/lib/args.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-07-04 08:32:42 -0500
committerRob Landley <rob@landley.net>2016-07-04 08:32:42 -0500
commit0ed17f12764268006c945f49fe3103952b20a0fa (patch)
tree56f56c49f98629ce5abcafd7973ff50ac85ef54b /lib/args.c
parentbf950cde6646dfbf4e7550184cde22d4b22185c4 (diff)
downloadtoybox-0ed17f12764268006c945f49fe3103952b20a0fa.tar.gz
Now that we're using the adjusted option string, need to skip placeholders in [groups].
Diffstat (limited to 'lib/args.c')
-rw-r--r--lib/args.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/args.c b/lib/args.c
index 1f42cdde..e6378beb 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -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) {