summaryrefslogtreecommitdiff
path: root/sysutils/php5-posix/files/patch-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/php5-posix/files/patch-posix.c')
-rw-r--r--sysutils/php5-posix/files/patch-posix.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/sysutils/php5-posix/files/patch-posix.c b/sysutils/php5-posix/files/patch-posix.c
index 7dc4a4b44762..d2365b249569 100644
--- a/sysutils/php5-posix/files/patch-posix.c
+++ b/sysutils/php5-posix/files/patch-posix.c
@@ -1,5 +1,5 @@
---- posix.c.orig Fri Feb 23 08:23:14 2007
-+++ posix.c Fri Feb 23 08:27:53 2007
+--- posix.c.orig Fri Feb 23 00:40:39 2007
++++ posix.c Sun May 13 17:52:27 2007
@@ -838,7 +838,7 @@
#if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX)
buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
@@ -9,17 +9,16 @@
}
buf = emalloc(buflen);
g = &gbuf;
-@@ -887,6 +887,9 @@
- #ifdef HAVE_GETGRGID_R
+@@ -888,7 +888,7 @@
grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);
-+ if (grbuflen < 1) {
+ if (grbuflen < 1) {
+- RETURN_FALSE;
+ grbuflen = 1024;
-+ }
- grbuf = emalloc(grbuflen);
+ }
- ret = getgrgid_r(gid, &_g, grbuf, grbuflen, &retgrptr);
-@@ -951,7 +954,7 @@
+ grbuf = emalloc(grbuflen);
+@@ -955,7 +955,7 @@
#if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWNAM_R)
buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
if (buflen < 1) {
@@ -28,7 +27,7 @@
}
buf = emalloc(buflen);
pw = &pwbuf;
-@@ -1000,7 +1003,7 @@
+@@ -1004,7 +1004,7 @@
#if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWUID_R)
pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX);
if (pwbuflen < 1) {