The following reply was made to PR general/2714; it has been noted by GNATS.
From: Maybe TABOO <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: general/2714: Command line option '-?' doesn't work. Date: Tue, 28 Jul 1998 01:10:01 +0900 (JST) "Ralf S. Engelschall" <[EMAIL PROTECTED]>: > >>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