Was there any point to allowing additional, unused args after the
various supported switches?
This prevents the Apache server from starting with an httpd somefooness
invocation.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92241
13f79535-47bb-0310-9956-
ffa450edef68
}
}
- if (rv != APR_EOF) { /* bad cmdline option */
+ /* bad cmdline option? then we die */
+ if (rv != APR_EOF) {
+ usage(process);
+ }
+// C:\apache2\bin\apache.exe: illegal option -- q
+ /* 'extra' argument ignored? then we die */
+ if (opt->ind < opt->argc) {
+ ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
+ "Unused argument %s\n",
+ opt->argv[opt->ind]);
usage(process);
}