]> granicus.if.org Git - apache/commitdiff
issue the usage message if there are extraneous arguments on
authorJeff Trawick <trawick@apache.org>
Thu, 23 May 2002 18:52:26 +0000 (18:52 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 23 May 2002 18:52:26 +0000 (18:52 +0000)
the command line

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95254 13f79535-47bb-0310-9956-ffa450edef68

server/main.c

index 9a1cdb456cfcf0661fd7ebee7c4085784964092a..6dfbfc2eae8cec85996f01ddcef9e3f358be8f8e 100644 (file)
@@ -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);
     }