Sun Apr 28 17:12:30 2024 UTC (34d)
Bump bozohttpd version to today for mobile-friendly directory listing


(maya)
diff -r1.55 -r1.56 src/libexec/httpd/CHANGES
diff -r1.96 -r1.97 src/libexec/httpd/bozohttpd.8
diff -r1.146 -r1.147 src/libexec/httpd/bozohttpd.c

cvs diff -r1.55 -r1.56 src/libexec/httpd/CHANGES (expand / switch to unified diff)

--- src/libexec/httpd/CHANGES 2024/01/26 23:19:44 1.55
+++ src/libexec/httpd/CHANGES 2024/04/28 17:12:30 1.56
@@ -1,14 +1,17 @@ @@ -1,14 +1,17 @@
1$NetBSD: CHANGES,v 1.55 2024/01/26 23:19:44 mrg Exp $ 1$NetBSD: CHANGES,v 1.56 2024/04/28 17:12:30 maya Exp $
 2
 3changes in bozohttpd 20240428:
 4 o make directory listings mobile friendly. from D. Bohdan.
2 5
3changes in bozohttpd 20240126: 6changes in bozohttpd 20240126:
4 o add some more default mime types. 7 o add some more default mime types.
5 o fix memory leaks. from shm. 8 o fix memory leaks. from shm.
6 o fix reading 2 bytes beyond '%', possibly not mapped. from shm. 9 o fix reading 2 bytes beyond '%', possibly not mapped. from shm.
7 o support openssl 3. from christos. 10 o support openssl 3. from christos.
8 o add -q option to not log. from martin. 11 o add -q option to not log. from martin.
9 o fix default return value of bozo_set_defaults(), PR#54785. 12 o fix default return value of bozo_set_defaults(), PR#54785.
10 13
11changes in bozohttpd 20220104: 14changes in bozohttpd 20220104:
12 o remove obsolete .bzdirect handling. 15 o remove obsolete .bzdirect handling.
13 16
14changes in bozohttpd 20210824: 17changes in bozohttpd 20210824:

cvs diff -r1.96 -r1.97 src/libexec/httpd/bozohttpd.8 (expand / switch to unified diff)

--- src/libexec/httpd/bozohttpd.8 2024/02/04 05:54:20 1.96
+++ src/libexec/httpd/bozohttpd.8 2024/04/28 17:12:30 1.97
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: bozohttpd.8,v 1.96 2024/02/04 05:54:20 mrg Exp $ 1.\" $NetBSD: bozohttpd.8,v 1.97 2024/04/28 17:12:30 maya Exp $
2.\" 2.\"
3.\" $eterna: bozohttpd.8,v 1.101 2011/11/18 01:25:11 mrg Exp $ 3.\" $eterna: bozohttpd.8,v 1.101 2011/11/18 01:25:11 mrg Exp $
4.\" 4.\"
5.\" Copyright (c) 1997-2024 Matthew R. Green 5.\" Copyright (c) 1997-2024 Matthew R. Green
6.\" All rights reserved. 6.\" All rights reserved.
7.\" 7.\"
8.\" Redistribution and use in source and binary forms, with or without 8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions 9.\" modification, are permitted provided that the following conditions
10.\" are met: 10.\" are met:
11.\" 1. Redistributions of source code must retain the above copyright 11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer. 12.\" notice, this list of conditions and the following disclaimer.
13.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" 2. Redistributions in binary form must reproduce the above copyright
14.\" notice, this list of conditions and the following disclaimer in the 14.\" notice, this list of conditions and the following disclaimer in the
@@ -16,27 +16,27 @@ @@ -16,27 +16,27 @@
16.\" 16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE. 27.\" SUCH DAMAGE.
28.\" 28.\"
29.Dd Jan 26, 2024 29.Dd Apr 28, 2024
30.Dt BOZOHTTPD 8 30.Dt BOZOHTTPD 8
31.Os 31.Os
32.Sh NAME 32.Sh NAME
33.Nm bozohttpd 33.Nm bozohttpd
34.Nd hyper text transfer protocol version 1.1 daemon 34.Nd hyper text transfer protocol version 1.1 daemon
35.Sh SYNOPSIS 35.Sh SYNOPSIS
36.Nm 36.Nm
37.Op Fl EGHVXdefhnqsu 37.Op Fl EGHVXdefhnqsu
38.Op Fl C Ar suffix cgihandler 38.Op Fl C Ar suffix cgihandler
39.Op Fl I Ar port 39.Op Fl I Ar port
40.Op Fl L Ar prefix script 40.Op Fl L Ar prefix script
41.Op Fl M Ar suffix type encoding encoding11 41.Op Fl M Ar suffix type encoding encoding11
42.Op Fl m Ar version 42.Op Fl m Ar version
@@ -654,27 +654,27 @@ exit 1 @@ -654,27 +654,27 @@ exit 1
654.Nm 654.Nm
655was first written in perl, based on another perl http server 655was first written in perl, based on another perl http server
656called 656called
657.Dq tinyhttpd . 657.Dq tinyhttpd .
658It was then rewritten from scratch in perl, and then once again in C. 658It was then rewritten from scratch in perl, and then once again in C.
659From 659From
660.Dq bozohttpd 660.Dq bozohttpd
661version 20060517, it has been integrated into 661version 20060517, it has been integrated into
662.Nx . 662.Nx .
663The focus has always been simplicity and security, with minimal features 663The focus has always been simplicity and security, with minimal features
664and regular code audits. 664and regular code audits.
665This manual documents 665This manual documents
666.Nm 666.Nm
667version 20240126. 667version 20240428.
668.Sh AUTHORS 668.Sh AUTHORS
669.An -nosplit 669.An -nosplit
670.Nm 670.Nm
671was written by 671was written by
672.An Matthew R. Green 672.An Matthew R. Green
673.Aq Mt mrg@eterna23.net . 673.Aq Mt mrg@eterna23.net .
674.Pp 674.Pp
675The large list of contributors includes: 675The large list of contributors includes:
676.Bl -dash 676.Bl -dash
677.It 677.It
678.An Christoph Badura 678.An Christoph Badura
679.Aq Mt bad@bsd.de 679.Aq Mt bad@bsd.de
680provided Range: header support 680provided Range: header support

cvs diff -r1.146 -r1.147 src/libexec/httpd/bozohttpd.c (expand / switch to unified diff)

--- src/libexec/httpd/bozohttpd.c 2024/01/26 23:19:44 1.146
+++ src/libexec/httpd/bozohttpd.c 2024/04/28 17:12:30 1.147
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: bozohttpd.c,v 1.146 2024/01/26 23:19:44 mrg Exp $ */ 1/* $NetBSD: bozohttpd.c,v 1.147 2024/04/28 17:12:30 maya Exp $ */
2 2
3/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */ 3/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */
4 4
5/* 5/*
6 * Copyright (c) 1997-2024 Matthew R. Green 6 * Copyright (c) 1997-2024 Matthew R. Green
7 * All rights reserved. 7 * All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -98,27 +98,27 @@ @@ -98,27 +98,27 @@
98 * 98 *
99 * - 14.15: content-md5 would be nice. 99 * - 14.15: content-md5 would be nice.
100 * 100 *
101 * - 14.24/14.26/14.27: if-match, if-none-match, if-range. be 101 * - 14.24/14.26/14.27: if-match, if-none-match, if-range. be
102 * nice to support this. 102 * nice to support this.
103 * 103 *
104 * - 14.44: Vary: seems unneeded. ignore it for now. 104 * - 14.44: Vary: seems unneeded. ignore it for now.
105 */ 105 */
106 106
107#ifndef INDEX_HTML 107#ifndef INDEX_HTML
108#define INDEX_HTML "index.html" 108#define INDEX_HTML "index.html"
109#endif 109#endif
110#ifndef SERVER_SOFTWARE 110#ifndef SERVER_SOFTWARE
111#define SERVER_SOFTWARE "bozohttpd/20240126" 111#define SERVER_SOFTWARE "bozohttpd/20240428"
112#endif 112#endif
113#ifndef PUBLIC_HTML 113#ifndef PUBLIC_HTML
114#define PUBLIC_HTML "public_html" 114#define PUBLIC_HTML "public_html"
115#endif 115#endif
116 116
117#ifndef USE_ARG 117#ifndef USE_ARG
118#define USE_ARG(x) /*LINTED*/(void)&(x) 118#define USE_ARG(x) /*LINTED*/(void)&(x)
119#endif 119#endif
120 120
121/* 121/*
122 * And so it begins .. 122 * And so it begins ..
123 */ 123 */
124 124