summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_auth.h
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2018-08-24 17:59:44 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2018-09-01 14:25:59 +0200
commit2677d438502b68a967d46ffadfadc138070ce762 (patch)
treeab9af111fb20419c5fbe95841200b3bd4d2f7d41 /ext/mysqlnd/mysqlnd_auth.h
parent7fb7869e13999f419787f56340ca4b4dbbb4eef8 (diff)
downloadphp-git-2677d438502b68a967d46ffadfadc138070ce762.tar.gz
Fix #75696: posix_getgrnam fails to print details of group
According to the POSIX specification of `getgrnam_r()` the result of `sysconf(_SC_GETGR_R_SIZE_MAX)` is an initial value suggested for the size of the buffer, and `ERANGE` signals that insufficient storage was supplied. So if we get `ERANGE`, we try again with a buffer twice as big, and so on, instead of failing.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_auth.h')
0 files changed, 0 insertions, 0 deletions