mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 19:00:09 +00:00
1ba9ebfce3
During cleanup, before returning from get*_r functions, the end*ent
calls must not change errno. Otherwise, an ERANGE error from the
underlying implementation can be hidden, causing unexpected lookup
failures. This commit introduces an internal_end*ent_noerror
function which saves and restore errno, and marks the original
internal_end*ent function as warn_unused_result, so that it is used
only in contexts were errors from it can be handled explicitly.
Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
compat-grp.c | ||
compat-initgroups.c | ||
compat-pwd.c | ||
compat-spwd.c | ||
nisdomain.c | ||
nisdomain.h |