public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11254] New: Argp fails to recognize certain option aliases
@ 2010-02-05 12:28 gray at gnu dot org dot ua
2010-04-04 18:29 ` [Bug libc/11254] " drepper at redhat dot com
2010-05-12 2:35 ` pasky at suse dot cz
0 siblings, 2 replies; 3+ messages in thread
From: gray at gnu dot org dot ua @ 2010-02-05 12:28 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-12 2:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-05 12:28 [Bug libc/11254] New: Argp fails to recognize certain option aliases gray at gnu dot org dot ua
2010-04-04 18:29 ` [Bug libc/11254] " drepper at redhat dot com
2010-05-12 2:35 ` pasky at suse dot cz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).