[BACK]Return to main.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / libexec / httpd

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/libexec/httpd/main.c between version 1.8.2.1 and 1.8.2.1.2.1

version 1.8.2.1, 2016/04/10 10:33:11 version 1.8.2.1.2.1, 2017/01/18 08:46:23
Line 4 
Line 4 
 /* from: eterna: bozohttpd.c,v 1.159 2009/05/23 02:14:30 mrg Exp        */  /* from: eterna: bozohttpd.c,v 1.159 2009/05/23 02:14:30 mrg Exp        */
   
 /*  /*
  * Copyright (c) 1997-2014 Matthew R. Green   * Copyright (c) 1997-2016 Matthew R. Green
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
Line 101  usage(bozohttpd_t *httpd, char *progname
Line 101  usage(bozohttpd_t *httpd, char *progname
         bozowarn(httpd,          bozowarn(httpd,
                 "   -v virtualroot\tenable virtual host support "                  "   -v virtualroot\tenable virtual host support "
                 "in this directory");                  "in this directory");
           bozowarn(httpd, "   -V\t\tUnknown virtual hosts go to `slashdir'");
 #ifndef NO_DIRINDEX_SUPPORT  #ifndef NO_DIRINDEX_SUPPORT
         bozowarn(httpd,          bozowarn(httpd,
                 "   -X\t\t\tenable automatic directory index support");                  "   -X\t\t\tenable automatic directory index support");
Line 118  usage(bozohttpd_t *httpd, char *progname
Line 119  usage(bozohttpd_t *httpd, char *progname
                         " and private key file\n"                          " and private key file\n"
                 "\t\t\tin pem format and enable bozohttpd in SSL mode");                  "\t\t\tin pem format and enable bozohttpd in SSL mode");
 #endif /* NO_SSL_SUPPORT */  #endif /* NO_SSL_SUPPORT */
           bozowarn(httpd, "   -G print version number and exit");
         bozoerr(httpd, 1, "%s failed to start", progname);          bozoerr(httpd, 1, "%s failed to start", progname);
 }  }
   
Line 148  main(int argc, char **argv)
Line 150  main(int argc, char **argv)
          */           */
   
         while ((c = getopt(argc, argv,          while ((c = getopt(argc, argv,
             "C:EHI:L:M:P:S:U:VXZ:bc:defhi:np:st:uv:x:z:")) != -1) {              "C:EGHI:L:M:P:S:U:VXZ:bc:defhi:np:st:uv:x:z:")) != -1) {
                 switch (c) {                  switch (c) {
   
                 case 'L':                  case 'L':
Line 351  main(int argc, char **argv)
Line 353  main(int argc, char **argv)
   
 #endif /* NO_DIRINDEX_SUPPORT */  #endif /* NO_DIRINDEX_SUPPORT */
   
                   case 'G':
                           {
                                   char    version[128];
   
                                   bozo_get_version(version, sizeof(version));
                                   printf("bozohttpd version %s\n", version);
                           }
                           return 0;
   
                 default:                  default:
                         usage(&httpd, progname);                          usage(&httpd, progname);
                         /* NOTREACHED */                          /* NOTREACHED */

Legend:
Removed from v.1.8.2.1  
changed lines
  Added in v.1.8.2.1.2.1

CVSweb <webmaster@jp.NetBSD.org>