diff options
author | Alex Dupre <ale@FreeBSD.org> | 2007-05-20 08:27:29 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2007-05-20 08:27:29 +0000 |
commit | cc137a49e95339da3fffd346f89ebb099489cedc (patch) | |
tree | f2bd36f58deff5be870f46f3a1312a1a03c412a4 /sysutils/php5-posix | |
parent | 01693688cc95da008677f8712094b6965309c7d7 (diff) |
Notes
Diffstat (limited to 'sysutils/php5-posix')
-rw-r--r-- | sysutils/php5-posix/files/patch-posix.c | 19 |
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) { |