summaryrefslogtreecommitdiff
path: root/lang/php53/patches
diff options
context:
space:
mode:
authortaca <taca>2011-08-22 09:40:00 +0000
committertaca <taca>2011-08-22 09:40:00 +0000
commit86434346f503cd99f278618ec41069bcdea375e1 (patch)
tree526d4036164a84e88320d4e1effe89bf70b819c3 /lang/php53/patches
parentb99cd01d21affb4fb056f495edc133c0ce42dfc1 (diff)
downloadpkgsrc-86434346f503cd99f278618ec41069bcdea375e1.tar.gz
Add fix for MD5 password encryption problem (r315218 from PHP repository).
Bump PKGREVISION.
Diffstat (limited to 'lang/php53/patches')
-rw-r--r--lang/php53/patches/patch-ext_standard_php__crypt__r.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/php53/patches/patch-ext_standard_php__crypt__r.c b/lang/php53/patches/patch-ext_standard_php__crypt__r.c
new file mode 100644
index 00000000000..e889a33bcab
--- /dev/null
+++ b/lang/php53/patches/patch-ext_standard_php__crypt__r.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-ext_standard_php__crypt__r.c,v 1.1 2011/08/22 09:40:00 taca Exp $
+
+Fix for MD5 password encryption problem (r315218 from PHP repository).
+
+--- ext/standard/php_crypt_r.c.orig 2011-08-07 16:10:34.000000000 +0000
++++ ext/standard/php_crypt_r.c
+@@ -382,7 +382,7 @@ char * php_md5_crypt_r(const char *pw, c
+ /* Now make the output string */
+ memcpy(passwd, MD5_MAGIC, MD5_MAGIC_LEN);
+ strlcpy(passwd + MD5_MAGIC_LEN, sp, sl + 1);
+- strlcat(passwd, "$", 1);
++ strcat(passwd, "$");
+
+ PHP_MD5Final(final, &ctx);
+