www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maybe TABOO <y-k...@jp.FreeBSD.org>
Subject Re: general/2714: Command line option '-?' doesn't work.
Date Mon, 27 Jul 1998 16:20:02 GMT
The following reply was made to PR general/2714; it has been noted by GNATS.

From: Maybe TABOO <y-koga@jp.FreeBSD.org>
To: rse@engelschall.com
Cc: apbugs@apache.org
Subject: Re: general/2714: Command line option '-?' doesn't work.
Date: Tue, 28 Jul 1998 01:10:01 +0900 (JST)

 "Ralf S. Engelschall" <rse@engelschall.com>:
 > >>Description:
 > > Command line option '-?' doesn't work. If you run with '-?' option, error message
is printed.
 > >>How-To-Repeat:
 > > Run httpd with '-?' option.
 > >>Fix:
 > > Following patch is for 1.3.1:
 ...snip...
 > Ops, there is a bug, yes. But be careful. According to getopt(3)
 > on my FreeBSD box:
 > 
 >  | [..] The getopt() function returns -1 when the argument list is exhausted,
 >  | or `?' if a non-recognized option is encountered. [...]
 > 
 > So, adding '?' is not correct, IMHO. Because then invalid options are no
 > longer catched. Instead the correct fix seems to be to change the httpd.8
 
 Getopt() returns '?' after it prints error message such as
 "progname: illegal option -- opt". So I think adding '?' is correct way.
 
 Check the file /usr/src/lib/libc/stdlib/getopt.c on your system.
 
 Regards,
 
 -- Koga, Youichirou

Mime
View raw message