[PATCH] getgrent.3: Add ENOENT to error list.
Siddhesh Poyarekar
siddhesh@redhat.com
Wed Sep 10 14:53:00 GMT 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140910/ffab15e9/attachment.sig>
More information about the Libc-alpha
mailing list