CHANGES revision 1.34
11.34Smrg$NetBSD: CHANGES,v 1.34 2018/12/19 12:40:32 mrg Exp $
21.32Sleot
31.32Sleotchanges in bozohttpd 20181215:
41.34Smrg	o  fix .htpasswd bypass for authenticated users.  reported by JP,
51.32Sleot	   from leot@netbsd.org
61.32Sleot	o  avoid possible null dereference when receiving a big request that
71.32Sleot	   timeout.  reported by maya@netbsd.org, from leot@netbsd.org
81.32Sleot	o  fix handling of -T option, from leot@netbsd.org
91.32Sleot	o  cleanups and portability improvements, from maya@netbsd.org
101.33Smrg	o  change directory indexing to use html tables, from
111.31Smrg	   rajeev_v_pillai@yahoo.com
121.29Smrg
131.29Smrgchanges in bozohttpd 20181125:
141.30Smrg	o  fixes for option parsing introduced in bozohttpd 20181123
151.26Smrg
161.28Smrgchanges in bozohttpd 20181121:
171.26Smrg	o  add url remap support via .bzremap file, from martin@netbsd.org
181.26Smrg	o  handle redirections for any protocol, not just http:
191.26Smrg	o  fix a denial of service attack against header contents, which
201.27Smrg	   is now bounded at 16KiB.  reported by JP
211.27Smrg	o  reduce default timeouts, and add expand timeouts to handle the
221.27Smrg	   initial line, each header, and the total time spent
231.27Smrg	o  add -T option to expose new timeout settings
241.27Smrg	o  minor RFC fixes related to timeout handling
251.30Smrg	o  fix special file (.htpasswd, .bz*) bypass.  reported by JP
261.25Smrg
271.25Smrgchanges in bozohttpd 20170201:
281.25Smrg	o  fix an infinite loop in cgi processing
291.25Smrg	o  fixes and clean up for the testsuite
301.25Smrg	o  no longer sends encoding header for compressed formats
311.11Smrg
321.23Sagcchanges in bozohttpd 20160517:
331.25Smrg	o  add a bozo_get_version() function which returns the version number
341.23Sagc
351.22Smrgchanges in bozohttpd 20160415:
361.22Smrg	o  add search-word support for CGI
371.22Smrg	o  fix a security issue in CGI suffix handler support which would
381.22Smrg	   allow remote code execution, from shm@netbsd.org
391.22Smrg	o  -C option supports now CGI scripts only
401.22Smrg
411.21Sshmchanges in bozohttpd 20151028:
421.21Sshm	o  add CGI support for ~user translation (-E switch)
431.21Sshm	o  add redirects to ~user translation
441.21Sshm	o  fix bugs around ~user translation
451.21Sshm	o  add schema detection for absolute redirects
461.21Sshm	o  fixed few memory leaks
471.21Sshm	o  bunch of minor tweaks
481.21Sshm	o  removed -r support
491.21Sshm	o  smarter redirects 
501.21Sshm
511.20Smrgchanges in bozohttpd 20150320:
521.20Smrg	o  fix redirection handling
531.20Smrg	o  support transport stream (.ts) and video object (.vob) files
541.20Smrg	o  directory listings show correct file sizes for large files
551.20Smrg
561.19Smrgchanges in bozohttpd 20140717:
571.20Smrg	o  properly handle SSL errors
581.19Smrg
591.18Smrgchanges in bozohttpd 20140708:
601.18Smrg	o  fixes for virtual host support, from rajeev_v_pillai@yahoo.com
611.18Smrg	o  avoid printing double errors, from shm@netbsd.org
621.18Smrg	o  fix a security issue in basic HTTP authentication which would allow
631.18Smrg	   authentication to be bypassed, from shm@netbsd.org
641.18Smrg
651.15Smrgchanges in bozohttpd 20140201:
661.16Smrg	o  support .svg files
671.15Smrg	o  fix a core dump when requests timeout
681.15Smrg
691.15Smrgchanges in bozohttpd 20140102:
701.14Smrg	o  update a few content types
711.14Smrg	o  add support for directly calling lua scripts to handle
721.14Smrg	   processes, from mbalmer@netbsd.org
731.13Smrg	o  properly escape generated HTML
741.13Smrg	o  add authentication for redirections, from martin@netbsd.org
751.13Smrg	o  handle chained ssl certifications, from elric@netbsd.org
761.13Smrg	o  add basic support for gzipped files, from elric@netbsd.org
771.12Smrg	o  properly escape generated URIs
781.12Smrg
791.15Smrgchanges in bozohttpd 20111118:
801.11Smrg	o  add -P <pidfile> option, from jmmv@netbsd.org
811.11Smrg	o  avoid crashes with http basic auth, from pooka@netbsd.org
821.11Smrg	o  add support for REDIRECT_STATUS variable, from tls@netbsd.org
831.11Smrg	o  support .mp4 files in the default map
841.11Smrg	o  directory indexes with files with : are now displayed properly, from
851.11Smrg	   reed@netbsd.org
861.11Smrg	o  allow -I option to be useful in non-inetd mode as well
871.9Smrg
881.15Smrgchanges in bozohttpd 20100920:
891.9Smrg	o  properly fully disable multi-file mode for now
901.9Smrg	o  fix the -t and -U options when used without the -e option, broken since
911.9Smrg	   the library-ifcation
921.9Smrg	o  be explicit that logs go to the FTP facility in syslog
931.10Smrg	o  use scandir() with alphasort() for sorted directory lists, from moof
941.10Smrg	o  fix a serious error in vhost handling; "Host:.." would allow access to
951.10Smrg	   the next level directory from the virtual root directory, from seanb
961.10Smrg	o  fix some various non standard compile time errors, from rudolf
971.10Smrg	o  fix dynamic CGI content maps, from rudolf
981.7Smrg
991.15Smrgchanges in bozohttpd 20100617:
1001.7Smrg	o  fix some compile issues
1011.8Smrg	o  fix SSL mode.  from rtr
1021.8Smrg	o  fix some cgi-bin issues, as seen with cvsweb
1031.8Smrg	o  disable multi-file daemon mode for now, it breaks
1041.8Smrg	o  return 404's instead of 403's when chdir of ~user dirs fail
1051.8Smrg	o  remove "noreturn" attribute from bozo_http_error() that was
1061.8Smrg	   causing incorrect runtime behaviour
1071.6Smrg
1081.15Smrgchanges in bozohttpd 20100509:
1091.6Smrg	o  major rework and clean up of internal interfaces.  move the main
1101.30Smrg	   program into main.c, the remaining parts are useable as library
1111.6Smrg	   add bindings for lua.  by Alistair G. Crooks <agc@netbsd.org>
1121.6Smrg	o  fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325
1131.4Smrg
1141.15Smrgchanges in bozohttpd 20090522:
1151.4Smrg	o  avoid dying in daemon mode for some uncommon, but recoverable, errors
1161.4Smrg	o  close leaking file descriptors for CGI and daemon mode
1171.4Smrg	o  handle poll errors properly
1181.4Smrg	o  don't try to handle more than one request per process yet
1191.5Smrg	o  add subdirs for build "debug" and "small" versions
1201.5Smrg	o  clean up a bad merge / duplicate code
1211.5Smrg	o  make mmap() usage portable, fixes linux & ranges: support
1221.5Smrg	o  document the -f option
1231.5Smrg	o  daemon mode now serves 6 files per child
1241.3Smrg
1251.15Smrgchanges in bozohttpd 20090417:
1261.3Smrg	o  make bozohttpd internally more modular, preparing the way
1271.3Smrg	   to handle more than one request per process
1281.3Smrg	o  fix http-auth, set $REMOTE_USER not $REMOTEUSER.  also fix
1291.3Smrg	   cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
1301.3Smrg	o  fix an uninitialised variable use in daemon mode
1311.3Smrg	o  fix ssl mode with newer OpenSSL
1321.3Smrg	o  mmap large files in manageable sizes so we can serve any size file
1331.3Smrg	o  refactor url processing to handle query strings correctly for CGI
1341.3Smrg	   from Sergey Katsev at Coyote Point
1351.3Smrg	o  add If-Modified-Since support, from Joerg Sonnenberger
1361.3Smrg	   <joerg@netbsd.org>
1371.3Smrg	o  many more manual fixes, from NetBSD
1381.3Smrg
1391.15Smrgchanges in bozohttpd 20080303:
1401.3Smrg	o  fix some cgi header processing, from <thelsdj@gmail.com>
1411.3Smrg	o  add simple Range: header processing, from <bad@bsd.de>
1421.3Smrg	o  man page fixes, from NetBSD
1431.3Smrg	o  clean up various parts, from NetBSD
1441.3Smrg
1451.15Smrgchanges in bozohttpd 20060710:
1461.3Smrg	o  prefix some function names with "bozo"
1471.3Smrg	o  align directory indexing <hr> markers
1481.3Smrg	o  clean up some code GCC4 grumbled about
1491.1Stls
1501.15Smrgchanges in bozohttpd 20060517:
1511.1Stls	o  don't allow "/.." or "../" files
1521.1Stls	o  don't write ":80" into urls for the http port
1531.1Stls	o  fix a fd leak when fork() fails
1541.1Stls	o  make directory indexing mode not look so ugly
1551.1Stls	o  build a text version of the manual page
1561.1Stls	o  make "make clean" work properly
1571.1Stls
1581.15Smrgchanges in bozohttpd 20050410:
1591.1Stls	o  fix some off-by-one errors from <roland.illig@gmx.de>
1601.1Stls	o  properly support nph- CGI
1611.1Stls	o  make content maps case insensitive
1621.1Stls	o  fix proto header merging to include the missing comma
1631.1Stls	o  major source reorganisation; most features are in separate files now
1641.1Stls	o  new -V flag that makes unknown virtualhosts use slashdir
1651.1Stls	   from <rumble@ephemeral.org>
1661.1Stls	o  HTTP/1.x protocol headers are now properly merged for CGI
1671.1Stls
1681.15Smrgchanges in bozohttpd 20040808:
1691.1Stls	o  CGI status is now properly handled (-a flag has been removed)
1701.1Stls	o  CGI file upload support works
1711.1Stls	o  %xy translations are no longer ever applied after the first '?',
1721.1Stls	   ala RFC2396.  from lukem
1731.1Stls	o  daemon mode (-b) should no longer hang spinning forever if it
1741.1Stls	   sees no children.  from lukem
1751.1Stls	o  new .bzabsredirect file support. from <martin@netbsd.org>
1761.1Stls	o  return a 404 error if we see %00 or %2f (/)
1771.1Stls	o  don't print 2 "200" headers for CGI
1781.1Stls	o  support .torrent files
1791.1Stls
1801.15Smrgchanges in bozohttpd 20040218:
1811.1Stls	o  new .bzredirect file support for sane directory redirection
1821.1Stls	o  new -Z option that enables SSL mode, from <rtr@eterna.com.au>
1831.1Stls	o  the -C option has been changed to take two explicit options, rather
1841.1Stls	   than a single option with a space separating the suffix and the
1851.1Stls	   interpreter.  ``-C ".foo /path/to/bar"'' should now be written
1861.1Stls	   as ``-C .foo /path/to/bar''
1871.1Stls	o  the -M option has been changed like -C and no longer requires or
1881.1Stls	   supports a single argument with space-separated options
1891.1Stls	o  with -a, still print the 200 OK.  from <rtr@eterna.com.au>
1901.1Stls	o  with -r, if a .bzdirect file appears in a directory, allow direct
1911.1Stls	   access to this directory
1921.1Stls
1931.15Smrgchanges in bozohttpd 20031005:
1941.1Stls	o  fixes for basic authorisation.  from <ecu@ipv42.net>
1951.1Stls	o  always display file size in directory index mode
1961.1Stls	o  add .xbel, .xml & .xsl -> text/xml mappings.  from
1971.1Stls	   <wiz@danbala.ifoer.tuwien.ac.at>
1981.1Stls
1991.15Smrgchanges in bozohttpd 20030626:
2001.1Stls	o  fix a recent core dump when given no input
2011.1Stls	o  add new -r flag that ensures referrer is set to this host
2021.1Stls	o  fix several compile time errors with -DNO_CGIBIN_SUPPORT
2031.1Stls	o  fix some man page details. from lukem@wasabisystems.com
2041.1Stls	o  re-add a missing memset(), fixing a core dump. from lukem
2051.1Stls	o  support HTTP basic authorisation, disabled by default.  from lukem
2061.1Stls	o  print the port number in redirects and errors. from lukem
2071.1Stls	o  only syslog the basename of the program. from lukem
2081.1Stls	o  add __attribute__() format checking. from lukem
2091.1Stls	o  fix cgibin SCRIPT_NAME to have a leading /.  from zakj@nox.cx
2101.1Stls	o  simplify some code in -C to avoid a core dump.  from lukem
2111.1Stls	o  add a .css -> css/text entry to the content_map[].  from zakj@nox.cx
2121.1Stls
2131.15Smrgchanges in bozohttpd 20030409:
2141.1Stls	o  -d without DEBUG enabled only prints one warning and continues
2151.1Stls	o  one can now define the C macro SERVER_SOFTWARE when building to
2161.1Stls	   change the Server: header and CGI variable of the same name
2171.1Stls	o  add new -s flag the force logging output to stderr. from zakj@nox.cx
2181.1Stls	o  add new -a flag for CGI bin that stops bozohttpd from outputting
2191.1Stls	   any HTTP reply, the CGI program must output these.  from zakj@nox.cx
2201.1Stls	o  new REQUEST_URI and DATE_GMT environment variables for CGI.  from
2211.1Stls	   zakj@nox.cx
2221.1Stls	o  add a "Makefile.boot" that should work with any make program
2231.1Stls	o  build on linux again
2241.1Stls	o  fix core dumps when using -C
2251.1Stls
2261.15Smrgchanges in bozohttpd 20030313:
2271.1Stls	o  deprecate -r flag; make this the default and silently ignore -r now
2281.1Stls	o  add support for file extentions to call CGI programs (from lukem)
2291.1Stls	o  add dynamic support to add new content map entries, allowing both
2301.1Stls	   new file types and non /cgi-bin CGI programs to be run with the
2311.1Stls	   new -C "suffix cgihandler" and -M "suffix type encoding encoding11"
2321.1Stls	   options
2331.1Stls	o  in -b mode, set the http date after accept() returns, not before we
2341.1Stls	   call accept()
2351.1Stls	o  in -b mode, bind all addresses found not just the first one
2361.1Stls	o  unsupport old hostname API
2371.1Stls	o  in -b mode, set the SO_REUSEADDR socket option (lukem)
2381.1Stls	o  allow -x (index.html) mode to work with CGI handlers
2391.1Stls
2401.15Smrgchanges in bozohttpd 20021106:
2411.1Stls	o  add .bz2 support
2421.1Stls	o  properly escape <, > and & in error messages, partly from
2431.1Stls	   Nicolas Jombart <ecu@mariejeanne.net>
2441.1Stls	o  new -H flag to hide .* files in directory index mode
2451.1Stls	o  fix buffer reallocation when parsing a request, to avoid
2461.1Stls	   overflowing the buffer with carriage returns (\r)
2471.1Stls	o  do not decode "%XY"-style cgi-bin data beyond the "?"
2481.1Stls
2491.15Smrgchanges in bozohttpd 5.15 (20020913):
2501.1Stls	o  add .ogg support -> `application/x-ogg'
2511.1Stls	o  fix CGI requests with "/" in the query part
2521.1Stls
2531.15Smrgchanges in bozohttpd 5.14 (20020823):
2541.1Stls	o  allow -X mode to work for "/"
2551.1Stls	o  work on systems without MADV_SEQUENTIAL
2561.1Stls	o  make a local cut-down copy of "queue.h" (fixes linux & solaris
2571.1Stls	   support at the very least)
2581.1Stls	o  portability fixes for pre-ipv6 socket api systems (eg, solaris 7)
2591.1Stls	o  portability fixes for missing _PATH_DEFPATH, LOG_FTP and __progname
2601.1Stls	o  better documentation on virtual host support
2611.1Stls
2621.15Smrgchanges in bozohttpd 5.13 (20020804):
2631.1Stls	o  support .mp3 files (type audio/mpeg)
2641.1Stls	o  use stat() to find out if something is a directory, for -X mode
2651.1Stls
2661.15Smrgchanges in bozohttpd 5.12 (20020803):
2671.1Stls	o  constification
2681.1Stls	o  fixes & enhancements for directory index mode (-X)
2691.1Stls
2701.15Smrgchanges in bozohttpd 5.11 (20020730):
2711.1Stls	o  more man page fixes from Thomas Klausner
2721.1Stls	   <wiz@danbala.ifoer.tuwien.ac.at>
2731.1Stls	o  de-K&R C-ification
2741.1Stls	o  fix Date: header for daemon mode
2751.1Stls	o  fix core dump when asking for /cgi-bin/ when CGI isn't configured
2761.1Stls	o  use a valid Server: header
2771.1Stls
2781.15Smrgchanges in bozohttpd 5.10 (20020710):
2791.1Stls	- add freebsd support 
2801.1Stls	- fix a couple of header typos
2811.1Stls	- many cgi-bin fixes from lukem@netbsd.org
2821.1Stls	- add -T chrootdir and -U user, plus several minor other cleanups
2831.1Stls	with signals and return values.  from xs@kittenz.org
2841.1Stls	- add -e that does not clear the environment for -T/-U
2851.1Stls	- fix a formatting error noticed by ISIHARA Takanori <ishit@oak.dti.ne.jp>
2861.1Stls
2871.15Smrgchanges in bozohttpd 5.09 (20010922):
2881.1Stls	- add a daemon mode
2891.1Stls	- document how to use bozohttpd in netbsd inetd with more than 40 
2901.1Stls	connections per minute and also with cgibin
2911.1Stls	- man page fixes from wiz@netbsd.org
2921.1Stls
2931.15Smrgchanges in bozohttpd 5.08 (20010812):
2941.1Stls	- add directory index generation support (-X) from ad@netbsd.org
2951.1Stls	- add .pa as an alias for .pac
2961.1Stls	- make server software version configurable (RFC)
2971.1Stls
2981.15Smrgchanges in bozohttpd 5.07 (20010610):
2991.1Stls	- add .png support 
3001.1Stls	- new "-x index.html" flag to change default file
3011.1Stls	- new "-p public_html" flag to change default ~user directory
3021.1Stls	- fixes cgi-bin support and more from chuck@research.att.com
3031.1Stls	- add many new content-types, now support most common ones
3041.1Stls
3051.15Smrgchanges in bozohttpd 5.06 (20000825):
3061.33Smrg	- add IPv6 support from itojun@iijlab.net
3071.1Stls	- man page fixes from jlam@netbsd.org
3081.1Stls
3091.15Smrgchanges in bozohttpd 5.05 (20000815):
3101.1Stls	- fix a virtual host bug, from kleink@netbsd.org
3111.1Stls
3121.15Smrgchanges in bozohttpd 5.04 (20000427):
3131.1Stls	- fix virtual host support; URI takes precedence over Host:
3141.1Stls
3151.15Smrgchanges in bozohttpd 5.03 (20000427):
3161.1Stls	- fix a bug with chdir() 
3171.1Stls
3181.15Smrgchanges in bozohttpd 5.02 (20000426):
3191.1Stls	- .pac spport from simonb
3201.1Stls
3211.15Smrgchanges in bozohttpd 5.01 (20000421):
3221.1Stls	- .swf support 
3231.1Stls	- virtual hosting support 
324