From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27175 invoked by alias); 1 Mar 2007 14:55:00 -0000 Received: (qmail 27149 invoked by uid 48); 1 Mar 2007 14:54:51 -0000 Date: Thu, 01 Mar 2007 14:55:00 -0000 Message-ID: <20070301145451.27148.qmail@sourceware.org> From: "edvotsyivj at datatech dot ru" To: glibc-bugs@sources.redhat.com In-Reply-To: <20070301115804.4116.edvotsyivj@datatech.ru> References: <20070301115804.4116.edvotsyivj@datatech.ru> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/4116] getopt_long does *not* return (or indicate in any way) error condition (if occured) to programmer. 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: 2007-03/txt/msg00001.txt.bz2 ------- Additional Comments From edvotsyivj at datatech dot ru 2007-03-01 14:54 ------- Though "getopt_long" points to an option in question in case of errors: 3) option doesn't allow an argument 4) option requires an argument ... by setting "optopt" variable, but leaves it's "longind" parameter untouched. This cause programmer either scan "longopts" array, or build one more "switch(...)" to find the option in question. So, "getopt_long" should be fixed to set "longind" -- http://sourceware.org/bugzilla/show_bug.cgi?id=4116 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.