[php-src] PR #13969: Use return value of getpwuid_r(), not errno
| From: | arnaud-lb | Date: | Mon, 15 Apr 2024 13:24:12 +0000 |
| Subject: | [php-src] PR #13969: Use return value of getpwuid_r(), not errno | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25760@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13969
Author: arnaud-lb
getpwuid_r() and other reentrant functions used in ext/posix return an error number and may not set
errno. https://github.com/php/php-src/pull/13921
updated ext/posix to use the return value, but one change was forgotten.
https://github.com/php/php-src/pull/13921
also sets the buffer len to
1 by default, which allowed to detect this issue on Mac OS.