www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Care@hyperreal.org, Doyoureally <probablywontre...@ttsg.com>
Subject general/4614: http doesn't show proper usage
Date Sun, 20 Jun 1999 11:30:21 GMT

>Number:         4614
>Category:       general
>Synopsis:       http doesn't show proper usage
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sun Jun 20 04:40:01 PDT 1999
>Last-Modified:
>Originator:     probablywontreply@ttsg.com
>Organization:
apache
>Release:        1.3.6
>Environment:
asgard# uname -a
BSD/OS asgard.ttsg.com 4.0.1 BSDI BSD/OS 4.0.1 Kernel #4: Fri Feb 19 11:52:44 MST 1999   
 polk@demiurge.BSDI.COM:/home/polk/tmp/sys/compile/GENERIC  i386
asgard# gcc -v
gcc version 2.7.2.1
>Description:
When doing a httpd -h, it does not show "[-D name]" in the
"Usage:" section.

asgard# ./httpd -h
Usage: ./httpd [-d directory] [-f file]
               [-C "directive"] [-c "directive"]
               [-v] [-V] [-h] [-l] [-L] [-S] [-t]
Options:
  -D name          : define a name for use in <IfDefine name> directives
  -d directory     : specify an alternate initial ServerRoot
  -f file          : specify an alternate ServerConfigFile
  -C "directive"   : process directive before reading config files
  -c "directive"   : process directive after  reading config files
  -v               : show version number
  -V               : show compile settings
  -h               : list available command line options (this page)
  -l               : list compiled-in modules
  -L               : list available configuration directives
  -S               : show parsed settings (currently only vhost settings)
  -t               : run syntax test for configuration files only
>How-To-Repeat:
httpd -h
>Fix:
In http_main.c 

Line 981 :

    fprintf(stderr, "Usage: %s [-R directory] [-d directory] [-f file]\n", bin);
becomes

    fprintf(stderr, "Usage: %s [-R directory] [-D name] [-d directory] [-f file]\n", bin);

Line 983:

    fprintf(stderr, "Usage: %s [-d directory] [-f file]\n", bin);
becomes
    fprintf(stderr, "Usage: %s [-d directory] [-D name] [-f file]\n", bin);

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]




Mime
View raw message