ports/sysutils/php70-posix/files/patch-posix.c
Martin Wilke e630e52bb5 Welcome php 7.0.3
Changelog:
    http://php.net/ChangeLog-7.php#7.0.0
    http://php.net/ChangeLog-7.php#7.0.1
    http://php.net/ChangeLog-7.php#7.0.2
    http://php.net/ChangeLog-7.php#7.0.3

I'd like to thanks:
  Kurt Jaeger
  Matthias Breddin
  Rainer Duffner
  Victor van Vlaardingen
  Torsten Zuehlsdorff
  Franco Fichtner
  and all helpers and testers from ports@.
2016-02-15 14:34:26 +00:00

38 lines
957 B
C

--- 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);
if (buflen < 1) {
- RETURN_FALSE;
+ buflen = 1024;
}
buf = emalloc(buflen);
g = &gbuf;
@@ -888,7 +888,7 @@
grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);
if (grbuflen < 1) {
- RETURN_FALSE;
+ grbuflen = 1024;
}
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) {
- RETURN_FALSE;
+ buflen = 1024;
}
buf = emalloc(buflen);
pw = &pwbuf;
@@ -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) {
- RETURN_FALSE;
+ pwbuflen = 1024;
}
pwbuf = emalloc(pwbuflen);