mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Fix option aliasing in argp.
This commit is contained in:
committed by
Ulrich Drepper
parent
26f4163c6e
commit
8c6de69d00
@@ -1,3 +1,9 @@
|
|||||||
|
2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
|
||||||
|
|
||||||
|
[BZ #11254]
|
||||||
|
* argp/argp-parse.c (convert_options): Fix improper use of `|'
|
||||||
|
between character values.
|
||||||
|
|
||||||
2010-04-04 Ulrich Drepper <drepper@redhat.com>
|
2010-04-04 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
[BZ #11276]
|
[BZ #11276]
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* Hierarchial argument parsing, layered over getopt
|
/* Hierarchial argument parsing, layered over getopt
|
||||||
Copyright (C) 1995-2000, 2002, 2003, 2004 Free Software Foundation, Inc.
|
Copyright (C) 1995-2000, 2002, 2003, 2004, 2010 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Written by Miles Bader <miles@gnu.ai.mit.edu>.
|
Written by Miles Bader <miles@gnu.ai.mit.edu>.
|
||||||
|
|
||||||
@@ -364,7 +364,7 @@ convert_options (const struct argp *argp,
|
|||||||
values (the sign of the lower bits is preserved
|
values (the sign of the lower bits is preserved
|
||||||
however)... */
|
however)... */
|
||||||
cvt->long_end->val =
|
cvt->long_end->val =
|
||||||
((opt->key | real->key) & USER_MASK)
|
((opt->key ? opt->key : real->key) & USER_MASK)
|
||||||
+ (((group - cvt->parser->groups) + 1) << USER_BITS);
|
+ (((group - cvt->parser->groups) + 1) << USER_BITS);
|
||||||
|
|
||||||
/* Keep the LONG_OPTS list terminated. */
|
/* Keep the LONG_OPTS list terminated. */
|
||||||
|
Reference in New Issue
Block a user