1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

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.
This commit is contained in:
Ulrich Drepper
2010-08-11 07:25:02 -07:00
parent f15ce4d8dc
commit c3e2f19bb9
11 changed files with 297 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1989,91,93,1996-2005,2006,2008 Free Software Foundation, Inc.
/* Copyright (C) 1989,91,93,1996-2006,2008,2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -56,7 +56,8 @@ internal_getgrouplist (const char *user, gid_t group, long int *size,
if (__nss_not_use_nscd_group > 0
&& ++__nss_not_use_nscd_group > NSS_NSCD_RETRY)
__nss_not_use_nscd_group = 0;
if (!__nss_not_use_nscd_group)
if (!__nss_not_use_nscd_group
&& !__nss_database_custom[NSS_DBSIDX_group])
{
int n = __nscd_getgrouplist (user, group, size, groupsp, limit);
if (n >= 0)