summaryrefslogtreecommitdiff
path: root/lib/args.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-01-01 16:19:40 -0600
committerRob Landley <rob@landley.net>2015-01-01 16:19:40 -0600
commitcf2516ab4bcf2c1d4cb571539dae794c6a40c5c6 (patch)
treef8f6d468d535f58f0cadfb2b58a09f7a6ef5ecde /lib/args.c
parenteeff24f941eee0696b36ec7115bb9e958e38ac10 (diff)
downloadtoybox-cf2516ab4bcf2c1d4cb571539dae794c6a40c5c6.tar.gz
toybox-cf2516ab4bcf2c1d4cb571539dae794c6a40c5c6.tar.bz2
toybox-cf2516ab4bcf2c1d4cb571539dae794c6a40c5c6.zip
Debris from flag handling rewrite: don't allow -^A to actually trigger.
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 d0b483a..b385dd4 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -327,6 +327,7 @@ void parse_optflaglist(struct getoptflagstate *gof)
for (new = gof->opts; new; new = new->next) {
unsigned u = 1<<idx++;
+ if (new->c == 1) new->c = 0;
new->dex[1] = u;
if (new->flags & 1) gof->requires |= u;
if (new->type) {