On Wed, Sep 10, 2014 at 10:23:13AM -0400, Carlos O'Donell wrote: > It's possible to get ENOENT returned from getgrent > if the backend, for example say SSSD, isn't configured > or the daemon isn't running. The same can be said of any > of the NSS backend. The daemon not running is internally a NSS_STATUS_TRYAGAIN + EAGAIN[1], i.e. that is what the sssd nss plugin should return to glibc. glibc then should return that as a NOTFOUND, which for getgrent is a NULL return without errno set. I don't see why ENOENT is necessary. Siddhesh [1] http://www.gnu.org/software/libc/manual/html_node/NSS-Modules-Interface.html
Attachment:
pgpnl82L9bj1V.pgp
Description: PGP signature