From eebb3aa0edecbdd5961160cce86d2e8478b0e44b Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 13 Oct 1995 23:30:34 +0000 Subject: (argp_parse): If an option alias doesn't have a key, use the real key. --- libshouldbeinlibc/argp-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/argp-parse.c b/libshouldbeinlibc/argp-parse.c index fa3da19f..39acdeb3 100644 --- a/libshouldbeinlibc/argp-parse.c +++ b/libshouldbeinlibc/argp-parse.c @@ -242,7 +242,7 @@ argp_parse (struct argp *argp, int argc, char **argv, unsigned flags, values (the sign of the lower bits is preserved however)... */ long_end->val = - (opt->key & USER_MASK) + ((opt->key | real->key) & USER_MASK) + (((group - groups) + 1) << USER_BITS); /* Keep the LONG_OPTS list terminated. */ -- cgit v1.2.3