nss: Fix tst-nss-files-hosts-long on single-stack hosts (bug 24816)
authorFlorian Weimer <fweimer@redhat.com>
Tue, 13 Sep 2022 14:11:40 +0000 (16:11 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 20 Sep 2022 11:09:55 +0000 (13:09 +0200)
commitc75d20b5b27b0a60f0678236f51a4d3b0b058c00
treebe756f0181ad53dae9d700b30b838237f0940407
parenta623f13adfac47c8634a7288e08f821a846bc650
nss: Fix tst-nss-files-hosts-long on single-stack hosts (bug 24816)

getent implicitly passes AI_ADDRCONFIG to getaddrinfo by default.
Use --no-addrconfig to suppress that, so that both IPv4 and IPv6
lookups succeed even if the address family is not supported by the
host.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
nss/tst-nss-files-hosts-long.c