summaryrefslogtreecommitdiff
path: root/www/bozohttpd
diff options
context:
space:
mode:
authormrg <mrg@pkgsrc.org>2008-03-07 18:17:26 +0000
committermrg <mrg@pkgsrc.org>2008-03-07 18:17:26 +0000
commitaa48bebc5b6d7753307ae0a959068dd81442a83e (patch)
treefddbd4fd9f7826f5bec9c3dff875057551eece31 /www/bozohttpd
parent5874803c5803284024b023f0e85d8108f5ee500a (diff)
downloadpkgsrc-aa48bebc5b6d7753307ae0a959068dd81442a83e.tar.gz
incorporate a fix from the master bozohttpd repo: fix files with spaces.
(or any special char, with no ?.)
Diffstat (limited to 'www/bozohttpd')
-rw-r--r--www/bozohttpd/Makefile3
-rw-r--r--www/bozohttpd/distinfo3
-rw-r--r--www/bozohttpd/patches/patch-ac24
3 files changed, 28 insertions, 2 deletions
diff --git a/www/bozohttpd/Makefile b/www/bozohttpd/Makefile
index 6015059c62a..d598ec523d0 100644
--- a/www/bozohttpd/Makefile
+++ b/www/bozohttpd/Makefile
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.61 2008/03/03 15:53:03 jlam Exp $
+# $NetBSD: Makefile,v 1.62 2008/03/07 18:17:26 mrg Exp $
#
DISTNAME= bozohttpd-20080303
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
+PKGREVISION= 1
MAINTAINER= mrg@eterna.com.au
HOMEPAGE= http://www.eterna.com.au/bozohttpd/
diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo
index ee228e4b6a2..70e6621a216 100644
--- a/www/bozohttpd/distinfo
+++ b/www/bozohttpd/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.44 2008/03/03 15:53:03 jlam Exp $
+$NetBSD: distinfo,v 1.45 2008/03/07 18:17:26 mrg Exp $
SHA1 (bozohttpd-20080303.tar.bz2) = 44810304239d5dd2ffe7853f15e69ffa211e384f
RMD160 (bozohttpd-20080303.tar.bz2) = 2941823266033b204c4aa3f5d63d488b70b78a64
Size (bozohttpd-20080303.tar.bz2) = 34469 bytes
SHA1 (patch-aa) = f1934786cb309cee8ec1c77e0760ee1e79b90f8f
SHA1 (patch-ab) = 010c130d315975d8a5ffcc3995bd951f6ecb619a
+SHA1 (patch-ac) = 353cef11f6d72f32a48db4389a47d1c7664f1c4f
diff --git a/www/bozohttpd/patches/patch-ac b/www/bozohttpd/patches/patch-ac
new file mode 100644
index 00000000000..cc3eb68d726
--- /dev/null
+++ b/www/bozohttpd/patches/patch-ac
@@ -0,0 +1,24 @@
+$NetBSD: patch-ac,v 1.9 2008/03/07 18:17:26 mrg Exp $
+
+Index: bozohttpd.c
+===================================================================
+RCS file: /home/cvs/bozohttpd/bozohttpd.c,v
+retrieving revision 1.140
+diff -p -u -r1.140 bozohttpd.c
+--- bozohttpd.c 28 Sep 2006 05:24:29 -0000 1.140
++++ bozohttpd.c 7 Mar 2008 18:07:53 -0000
+@@ -1379,12 +1379,12 @@ fix_url_percent(http_req *request)
+ buf[2] = '\0';
+ s++;
+ *t = (char)strtol(buf, NULL, 16);
+- debug((DEBUG_EXPLODING, "fu_%%: strtol put %c into *t", *t));
++ debug((DEBUG_EXPLODING, "fu_%%: strtol put '%c' into *t", *t));
+ if (*t++ == '\0')
+ http_error(400, request, "percent hack got a 0 back");
+
+ while (*s && *s != '%') {
+- if (s >= end)
++ if (end && s >= end)
+ break;
+ *t++ = *s++;
+ }