diff options
author | taca <taca> | 2011-08-22 09:40:00 +0000 |
---|---|---|
committer | taca <taca> | 2011-08-22 09:40:00 +0000 |
commit | 86434346f503cd99f278618ec41069bcdea375e1 (patch) | |
tree | 526d4036164a84e88320d4e1effe89bf70b819c3 /lang/php53 | |
parent | b99cd01d21affb4fb056f495edc133c0ce42dfc1 (diff) | |
download | pkgsrc-86434346f503cd99f278618ec41069bcdea375e1.tar.gz |
Add fix for MD5 password encryption problem (r315218 from PHP repository).
Bump PKGREVISION.
Diffstat (limited to 'lang/php53')
-rw-r--r-- | lang/php53/distinfo | 3 | ||||
-rw-r--r-- | lang/php53/patches/patch-ext_standard_php__crypt__r.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/lang/php53/distinfo b/lang/php53/distinfo index e908cc90c58..8f60e850b8f 100644 --- a/lang/php53/distinfo +++ b/lang/php53/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.19 2011/08/20 14:41:04 taca Exp $ +$NetBSD: distinfo,v 1.20 2011/08/22 09:40:00 taca Exp $ SHA1 (php-5.3.7/php-5.3.7.tar.bz2) = 811e84b75d41ad997c075e3ebc8470f5c26d03ea RMD160 (php-5.3.7/php-5.3.7.tar.bz2) = d14c52036f35d79193783b590c0cf131e1cd00c0 @@ -17,3 +17,4 @@ SHA1 (patch-ah) = b20c29c64b3099f77855a5ec28960dc1c4f65c83 SHA1 (patch-ai) = d4766893a2c47a4e4a744248dda265b0a9a66a1f SHA1 (patch-aj) = d611d13fcc28c5d2b9e9586832ce4b8ae5707b48 SHA1 (patch-al) = fbbee5502e0cd1c47c6e7c15e0d54746414ec32e +SHA1 (patch-ext_standard_php__crypt__r.c) = 47ddf0ecb5d740e0a72af7d3071883f4c368d2f4 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); + |