summaryrefslogtreecommitdiff
path: root/www/php4
diff options
context:
space:
mode:
authortron <tron>2005-10-05 15:59:47 +0000
committertron <tron>2005-10-05 15:59:47 +0000
commitc647134ccae2d218267b2e00ee464cf553061a8f (patch)
treeec3ba46517d405a88a8374925bd1c2f1b9d3f9df /www/php4
parentb1ba23f6cba451c1e2c0f418b42c83d8eaf7d305 (diff)
downloadpkgsrc-c647134ccae2d218267b2e00ee464cf553061a8f.tar.gz
Add patch from Debian bug report 323585 to fix CAN-2005-3054.
Diffstat (limited to 'www/php4')
-rw-r--r--www/php4/Makefile3
-rw-r--r--www/php4/distinfo3
-rw-r--r--www/php4/patches/patch-ab15
3 files changed, 19 insertions, 2 deletions
diff --git a/www/php4/Makefile b/www/php4/Makefile
index 84775585ec0..03977cd529a 100644
--- a/www/php4/Makefile
+++ b/www/php4/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.52 2005/09/10 09:04:01 jdolecek Exp $
+# $NetBSD: Makefile,v 1.53 2005/10/05 15:59:47 tron Exp $
PKGNAME= php-${PHP_BASE_VERS}
+PKGREVISION= 1
CATEGORIES+= lang
COMMENT= HTML-embedded scripting language
diff --git a/www/php4/distinfo b/www/php4/distinfo
index 197fd68f961..2c0ec1b6282 100644
--- a/www/php4/distinfo
+++ b/www/php4/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.43 2005/09/10 09:04:01 jdolecek Exp $
+$NetBSD: distinfo,v 1.44 2005/10/05 15:59:47 tron Exp $
SHA1 (php-4.4.0.tar.bz2) = 5e0afe6e5f8c751f880a50ad4fa1716f0242ef37
RMD160 (php-4.4.0.tar.bz2) = 4792e78b6f2f3e3347a1ac945b48efaccedf4542
@@ -7,6 +7,7 @@ SHA1 (XML_RPC-1.4.0.tgz) = 461f0b70675a37f524043d19078e9c0502dd13ac
RMD160 (XML_RPC-1.4.0.tgz) = 8647565c7fa973ac800683d91c32d781fce9437c
Size (XML_RPC-1.4.0.tgz) = 26776 bytes
SHA1 (patch-aa) = feb064407950d0fc732b7240e65cac84420d2407
+SHA1 (patch-ab) = deaceb8d997af26fe051eb94d5b9a3f4307ffaea
SHA1 (patch-ad) = 9ca5d2f59bfeea77a98cd0e727546d11669114cd
SHA1 (patch-ag) = 1ded1d7f4daac6806f41864c783f16d3403315e4
SHA1 (patch-ah) = 0ac37bd35c4594cb58f1ea85ef811154b644a931
diff --git a/www/php4/patches/patch-ab b/www/php4/patches/patch-ab
new file mode 100644
index 00000000000..27f7d2bc02c
--- /dev/null
+++ b/www/php4/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.18 2005/10/05 15:59:47 tron Exp $
+
+--- main/fopen_wrappers.c.orig 2005-02-02 23:44:07.000000000 +0000
++++ main/fopen_wrappers.c 2005-10-05 16:52:55.000000000 +0100
+@@ -120,8 +120,8 @@
+ /* Handler for basedirs that end with a / */
+ resolved_basedir_len = strlen(resolved_basedir);
+ if (basedir[strlen(basedir) - 1] == PHP_DIR_SEPARATOR) {
+- if (resolved_basedir[resolved_basedir_len - 1] == '/') {
+- resolved_basedir[resolved_basedir_len - 1] = PHP_DIR_SEPARATOR;
++ if (resolved_basedir[resolved_basedir_len - 1] != PHP_DIR_SEPARATOR) {
++ resolved_basedir[resolved_basedir_len] = PHP_DIR_SEPARATOR;
+ resolved_basedir[++resolved_basedir_len] = '\0';
+ }
+ }