packages: php/php-opendir.patch (NEW) http://bugs.php.net/patch-display.php...

marcus marcus at pld-linux.org
Thu Dec 16 09:43:31 CET 2010


Author: marcus                       Date: Thu Dec 16 08:43:31 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
http://bugs.php.net/patch-display.php?bug_id=53516&patch=open_basedir-5.2.15-fix.patch&revision=latest

---- Files affected:
packages/php:
   php-opendir.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/php/php-opendir.patch
diff -u /dev/null packages/php/php-opendir.patch:1.1
--- /dev/null	Thu Dec 16 09:43:31 2010
+++ packages/php/php-opendir.patch	Thu Dec 16 09:43:26 2010
@@ -0,0 +1,12 @@
+diff -ruN php-5.2.15/main/fopen_wrappers.c php-5.2.15.ofi/main/fopen_wrappers.c
+--- php-5.2.15/main/fopen_wrappers.c	2010-12-09 18:04:29.000000000 +0100
++++ php-5.2.15.ofi/main/fopen_wrappers.c	2010-12-10 11:32:02.000000000 +0100
+@@ -192,7 +192,7 @@
+ 		if (strncmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {
+ #endif
+ 			if (resolved_name_len > resolved_basedir_len &&
+-				resolved_name[resolved_basedir_len] != PHP_DIR_SEPARATOR) {
++				resolved_name[resolved_basedir_len - 1] != PHP_DIR_SEPARATOR) {
+ 				return -1;
+ 			} else {
+ 				/* File is in the right directory */
================================================================


More information about the pld-cvs-commit mailing list