From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2495 invoked by alias); 5 Feb 2010 12:28:05 -0000 Received: (qmail 2424 invoked by uid 48); 5 Feb 2010 12:27:50 -0000 Date: Fri, 05 Feb 2010 12:28:00 -0000 From: "gray at gnu dot org dot ua" To: glibc-bugs@sources.redhat.com Message-ID: <20100205122749.11254.gray@gnu.org.ua> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/11254] New: Argp fails to recognize certain option aliases X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00030.txt.bz2 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.