[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-cvs
Subject:    cvs commit: httpd-2.0/server main.c
From:       wrowe () apache ! org
Date:       2001-11-29 7:27:57
[Download RAW message or body]

wrowe       01/11/28 23:27:57

  Modified:    server   main.c
  Log:
    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.
  
  Revision  Changes    Path
  1.106     +3 -3      httpd-2.0/server/main.c
  
  Index: main.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/main.c,v
  retrieving revision 1.105
  retrieving revision 1.106
  diff -u -r1.105 -r1.106
  --- main.c	2001/11/29 07:10:40	1.105
  +++ main.c	2001/11/29 07:27:57	1.106
  @@ -378,12 +378,12 @@
       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);
       }
   
  
  
  

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic