OSDN Git Service

Now that we're using the adjusted option string, need to skip placeholders in [groups].
authorRob Landley <rob@landley.net>
Mon, 4 Jul 2016 13:32:42 +0000 (08:32 -0500)
committerRob Landley <rob@landley.net>
Mon, 4 Jul 2016 13:32:42 +0000 (08:32 -0500)
lib/args.c

index 1f42cdd..e6378be 100644 (file)
@@ -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) {