]> granicus.if.org Git - apache/commitdiff
Revert my last patch to detect a 'leftover' arg. Apparently there is
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 29 Nov 2001 07:27:57 +0000 (07:27 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 29 Nov 2001 07:27:57 +0000 (07:27 +0000)
  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

index 6c0c99a71666dd7de0470ab4693fc4ecb5212fc5..e31bb0ebf3f38e16d1b4649a3423eb91d242702f 100644 (file)
@@ -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);
     }