This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11254] New: Argp fails to recognize certain option aliases
- From: "gray at gnu dot org dot ua" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Feb 2010 12:27:50 -0000
- Subject: [Bug libc/11254] New: Argp fails to recognize certain option aliases
- Reply-to: sourceware-bugzilla at sourceware dot org
Argp fails to properly recognize alias options that have
short option letters. For instance, in this setup (used in GNU inetutils):
static struct argp_option argp_options[] = {
{ "dstaddr", 'd', "ADDR", 0,
"set destination (peer) address to ADDR" },
{ "peer", 'p', "ADDR", OPTION_ALIAS },
{ NULL }
};
both --peer and -p are not recognized.
The bug is caused by improper use of `|' in argp/argp-parse.c:367.
It was fixed in gnulib, see:
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=11fbc574
--
Summary: Argp fails to recognize certain option aliases
Product: glibc
Version: 2.12
Status: NEW
Keywords: glibc_2.11
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: gray at gnu dot org dot ua
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11254
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.