From 2c0377dfc5c34011d19257b32563d8bb4bd7b7e3 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 29 Nov 2001 07:27:57 +0000 Subject: [PATCH] Revert my last patch to detect a 'leftover' arg. Apparently there is no way to distinguish between an extra arg, and a -x foo arg, or else our getopt is broken at the moment. I can't dig further into getopt right now, so this will wait for another day or another hacker to resolve. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92243 13f79535-47bb-0310-9956-ffa450edef68 --- server/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/main.c b/server/main.c index 6c0c99a716..e31bb0ebf3 100644 --- a/server/main.c +++ b/server/main.c @@ -378,12 +378,12 @@ int main(int argc, const char * const argv[]) 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]); + "%s: Unused argument -- %s\n", + apr_filename_of_pathname(argv[0]), opt->argv[opt->ind]); usage(process); } -- 2.50.1