URL:
https://github.com/SSSD/sssd/pull/5722
Title: #5722: NSS client: avoid using NETDB_INTERNAL if daemon is not available
sumit-bose commented:
"""
Hi,
thanks for the patch. According to the comment
https://sourceware.org/git/?p=glibc.git;a=blob;f=resolv/nss_dns/dns-host....
returning `NO_RECOVERY` if SSSD is not running makes sure that other sources are used as
well.
In the `sss_nss_gethost_readrep()` this is different because here `ERANGE` can be returned
to indicate that the supplied buffer is too small to carry all result. Here it is expected
that glibc immediately returns this information to the caller without looking at other
modules and the caller repeats the call with an increased buffer.
I will run some tests with your patch to understand the general glibc behavior better.
bye,
Sumit
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5722#issuecomment-891764934