diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-06-09 20:09:27 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-06-09 20:15:49 +0000 |
commit | bd1eaceaa3975bd2a2a34e211cff896affaecadf (patch) | |
tree | fcaa79adef524e52c3beb6b9b4f31a7a2ad775bb /src/passwd/getspnam.c | |
parent | 75ce4503950621b11fcc7f1fd1187dbcf3cde312 (diff) | |
download | musl-bd1eaceaa3975bd2a2a34e211cff896affaecadf.tar.gz musl-bd1eaceaa3975bd2a2a34e211cff896affaecadf.tar.xz musl-bd1eaceaa3975bd2a2a34e211cff896affaecadf.zip |
fix spurious errors from pwd/grp functions when nscd backend is absent
for several pwd/grp functions, the only way the caller can distinguish between a successful negative result ("no such user/group") and an internal error is by clearing errno before the call and checking errno afterwards. the nscd backend support code correctly simulated a not-found response on systems where such a backend is not running, but failed to restore errno. this commit also fixed an outdated/incorrect comment.
Diffstat (limited to 'src/passwd/getspnam.c')
0 files changed, 0 insertions, 0 deletions