update to bozohttpd 20090418. changes include: o avoid dying in daemon mode for some uncommon, but recoverable, errors o close leaking file descriptors for CGI and daemon mode o handle poll errors properly o don't try to handle more than one request per process yetdiff -r1.64 -r1.65 pkgsrc/www/bozohttpd/Makefile
(mrg)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.64 2009/04/18 07:01:38 mrg Exp $ | 1 | # $NetBSD: Makefile,v 1.65 2009/04/18 21:06:15 mrg Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= bozohttpd-20090417 | 4 | DISTNAME= bozohttpd-20090418 | |
5 | CATEGORIES= www | 5 | CATEGORIES= www | |
6 | MASTER_SITES= ${MASTER_SITE_LOCAL} | 6 | MASTER_SITES= ${MASTER_SITE_LOCAL} | |
7 | EXTRACT_SUFX= .tar.bz2 | 7 | EXTRACT_SUFX= .tar.bz2 | |
8 | 8 | |||
9 | MAINTAINER= mrg@eterna.com.au | 9 | MAINTAINER= mrg@eterna.com.au | |
10 | HOMEPAGE= http://www.eterna.com.au/bozohttpd/ | 10 | HOMEPAGE= http://www.eterna.com.au/bozohttpd/ | |
11 | COMMENT= Bozotic HTTP server; small and secure | 11 | COMMENT= Bozotic HTTP server; small and secure | |
12 | 12 | |||
13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | 14 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 15 | |||
16 | .include "options.mk" | 16 | .include "options.mk" | |
17 | 17 |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.46 2009/04/18 07:01:38 mrg Exp $ | 1 | $NetBSD: distinfo,v 1.47 2009/04/18 21:06:15 mrg Exp $ | |
2 | 2 | |||
3 | SHA1 (bozohttpd-20090417.tar.bz2) = 3ffacc60ceb15ca4a4b247a07df74f2fbd99269a | 3 | SHA1 (bozohttpd-20090418.tar.bz2) = fa63ceb04d70f6928e92110d50a89ec541371b03 | |
4 | RMD160 (bozohttpd-20090417.tar.bz2) = 1dae43331e9e8a3ef9190d666e5b62bebb4b9f74 | 4 | RMD160 (bozohttpd-20090418.tar.bz2) = 46d5aa4d7c4852337821c4fc78865571b206a62e | |
5 | Size (bozohttpd-20090417.tar.bz2) = 36304 bytes | 5 | Size (bozohttpd-20090418.tar.bz2) = 41488 bytes | |
6 | SHA1 (patch-aa) = f1934786cb309cee8ec1c77e0760ee1e79b90f8f | 6 | SHA1 (patch-aa) = ed75188890b62910fc66e0bc83976c785193eaaa | |
7 | SHA1 (patch-ab) = 010c130d315975d8a5ffcc3995bd951f6ecb619a | 7 | SHA1 (patch-ab) = 010c130d315975d8a5ffcc3995bd951f6ecb619a |
@@ -1,26 +1,24 @@ | @@ -1,26 +1,24 @@ | |||
1 | $NetBSD: patch-aa,v 1.17 2007/09/07 23:01:59 jlam Exp $ | 1 | $NetBSD: patch-aa,v 1.18 2009/04/18 21:06:15 mrg Exp $ | |
2 | 2 | |||
3 | --- auth-bozo.c.orig Wed May 17 08:19:10 2006 | 3 | --- auth-bozo.c.orig 2009-04-18 00:38:56.000000000 -0700 | |
4 | +++ auth-bozo.c | 4 | +++ auth-bozo.c 2009-04-18 14:03:57.000000000 -0700 | |
5 | @@ -37,7 +37,12 @@ | 5 | @@ -38,6 +38,10 @@ | |
6 | #include <sys/param.h> | 6 | #include <stdlib.h> | |
7 | #include <unistd.h> | |||
7 | 8 | |||
8 | #include <string.h> | |||
9 | + | |||
10 | +#ifndef NO_SSL_SUPPORT | 9 | +#ifndef NO_SSL_SUPPORT | |
11 | +#include <openssl/des.h> | 10 | +#include <openssl/des.h> | |
12 | +#else | |||
13 | #include <unistd.h> | |||
14 | +#endif | 11 | +#endif | |
15 | 12 | + | ||
16 | #include "bozohttpd.h" | 13 | #include "bozohttpd.h" | |
17 | 14 | |||
18 | @@ -97,7 +102,7 @@ auth_check(http_req *request, const char | 15 | #ifndef AUTH_FILE | |
16 | @@ -98,7 +102,7 @@ | |||
19 | request->hr_authpass)); | 17 | request->hr_authpass)); | |
20 | if (strcmp(request->hr_authuser, user) != 0) | 18 | if (strcmp(request->hr_authuser, user) != 0) | |
21 | continue; | 19 | continue; | |
22 | - if (strcmp(crypt(request->hr_authpass, pass), pass)) | 20 | - if (strcmp(crypt(request->hr_authpass, pass), pass)) | |
23 | + if (strcmp(DES_crypt(request->hr_authpass, pass), pass)) | 21 | + if (strcmp(DES_crypt(request->hr_authpass, pass), pass)) | |
24 | break; | 22 | break; | |
25 | fclose(fp); | 23 | fclose(fp); | |
26 | return; | 24 | return 0; |