summaryrefslogtreecommitdiff
path: root/www/bozohttpd
diff options
context:
space:
mode:
authorwiz <wiz>2002-09-12 21:20:31 +0000
committerwiz <wiz>2002-09-12 21:20:31 +0000
commitbf3bc9883e72c51d75a4ebbab1df7eb4c63cd6f7 (patch)
tree1625833847b39e67d6b646dc97e9d4e2f60a0195 /www/bozohttpd
parent38aeff48d4fce774adb9c68fde5813dc3bb6cb14 (diff)
downloadpkgsrc-bf3bc9883e72c51d75a4ebbab1df7eb4c63cd6f7.tar.gz
Fix a problem with cgi-bin's and the GET method.
Patch from mrg, due to be included in the next release, but who knows when that will be ;) Bump to 5.14nb1.
Diffstat (limited to 'www/bozohttpd')
-rw-r--r--www/bozohttpd/Makefile3
-rw-r--r--www/bozohttpd/distinfo3
-rw-r--r--www/bozohttpd/patches/patch-aa30
3 files changed, 34 insertions, 2 deletions
diff --git a/www/bozohttpd/Makefile b/www/bozohttpd/Makefile
index 30c08382669..8bff835f1ba 100644
--- a/www/bozohttpd/Makefile
+++ b/www/bozohttpd/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2002/09/09 17:18:20 jlam Exp $
+# $NetBSD: Makefile,v 1.26 2002/09/12 21:20:31 wiz Exp $
#
DISTNAME= bozohttpd-5.14
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo
index 7b0b93c5a7d..3143928a3ba 100644
--- a/www/bozohttpd/distinfo
+++ b/www/bozohttpd/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.18 2002/09/09 17:13:33 jlam Exp $
+$NetBSD: distinfo,v 1.19 2002/09/12 21:20:32 wiz Exp $
SHA1 (bozohttpd-5.14.tar.bz2) = ce4eeb87b8005b4eac5d52c8647c0ed3cae9f56e
Size (bozohttpd-5.14.tar.bz2) = 21666 bytes
+SHA1 (patch-aa) = 8ef0c003815cc4cae64b263742e22717501f9d0d
diff --git a/www/bozohttpd/patches/patch-aa b/www/bozohttpd/patches/patch-aa
new file mode 100644
index 00000000000..1ecc1eb885b
--- /dev/null
+++ b/www/bozohttpd/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.4 2002/09/12 21:20:32 wiz Exp $
+
+--- bozohttpd.c.orig Fri Aug 23 07:43:44 2002
++++ bozohttpd.c
+@@ -1434,6 +1434,12 @@ process_cgi(request)
+ if (request->method == HTTP_HEAD)
+ goto print_cgi_header;
+
++ if ((s = strchr(url, '?')) != NULL) {
++ *s++ = '\0';
++ query = s;
++ } else
++ query = NULL;
++
+ if ((s = strchr(url + 1, '/')) != NULL) {
+ command = malloc(s - url);
+ if (command == NULL)
+@@ -1449,12 +1455,6 @@ process_cgi(request)
+ if (*command == '/')
+ command++;
+ }
+-
+- if ((s = strchr(url, '?')) != NULL) {
+- *s++ = '\0';
+- query = s;
+- } else
+- query = NULL;
+
+ debug((DEBUG_FAT, "process_cgi: cmd %s info %s query %s",
+ command, info, query ? query : "<null>"));