diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2018-08-24 17:59:44 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-09-01 14:25:59 +0200 |
commit | 2677d438502b68a967d46ffadfadc138070ce762 (patch) | |
tree | ab9af111fb20419c5fbe95841200b3bd4d2f7d41 /ext/mysqlnd/mysqlnd_auth.h | |
parent | 7fb7869e13999f419787f56340ca4b4dbbb4eef8 (diff) | |
download | php-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