From: Jeff Trawick Date: Thu, 23 May 2002 18:52:26 +0000 (+0000) Subject: issue the usage message if there are extraneous arguments on X-Git-Tag: 2.0.37~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e801e407fc1bdaa8b61cf280af4388f7b620e4d6;p=thirdparty%2Fapache%2Fhttpd.git issue the usage message if there are extraneous arguments on the command line git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95254 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/main.c b/server/main.c index 9a1cdb456cf..6dfbfc2eae8 100644 --- a/server/main.c +++ b/server/main.c @@ -536,7 +536,7 @@ int main(int argc, const char * const argv[]) } /* bad cmdline option? then we die */ - if (rv != APR_EOF) { + if (rv != APR_EOF || opt->ind < opt->argc) { usage(process); }