From c3e2f19bb995a0281f4cc56ad81bd67a5404dde6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 11 Aug 2010 07:25:02 -0700 Subject: Add self-contained test for NSS. While at it fix interaction between __nss_configure_lookup and nscd. Otherwise the test fails if nscd is runnung. --- sysdeps/posix/getaddrinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/posix') diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 2e0c7248f0..126a09ea33 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -600,7 +600,8 @@ gaih_inet (const char *name, const struct gaih_service *service, && ++__nss_not_use_nscd_hosts > NSS_NSCD_RETRY) __nss_not_use_nscd_hosts = 0; - if (!__nss_not_use_nscd_hosts) + if (!__nss_not_use_nscd_hosts + && !__nss_database_custom[NSS_DBSIDX_hosts]) { /* Try to use nscd. */ struct nscd_ai_result *air = NULL; -- cgit 1.4.1