glibc/sysdeps
DJ Delorie 9b456c5da9 nss: fix nss_database_lookup2's alternate handling [BZ #27416]
__nss_database_lookup2's extra arguments were left unused in the
nsswitch reloading patch set; this broke compat (default config
ignored) and shadow files (secondary name ignored) which relies on
these fallbacks.

This patch adds in the previous behavior by correcting the
initialization of the database list to reflect the fallbacks.  This
means that the nss_database_lookup2 interface no longer needs to be
passed the fallback info, so API and callers were adjusted.

Since all callers needed to be edited anyway, the calls were changed
from __nss_database_lookup2 to the faster __nss_database_get.  This
was an intended optimization which was deferred during the initial
lookup changes to avoid touching so many files.

The test case verifies that compat targets work (passwd) and that the
default configuration works (group).  Tested on x86-64.
2021-03-09 14:34:50 -05:00
..
aarch64 aarch64: update ulps. 2021-03-01 12:29:42 +00:00
alpha Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
arc
arm Update arm libm-test-ulps 2021-03-05 08:35:24 -03:00
csky
generic Implement _Unwind_Resume in libc on top of <unwind-link.h> 2021-03-01 16:00:03 +01:00
gnu Move sysdeps/gnu/unwind-resume.c to sysdeps/generic/unwind-resume.c 2021-03-01 15:59:49 +01:00
hppa Update hppa libm-test-ulps 2021-03-07 17:23:34 +00:00
htl
hurd
i386 i386: Regenerate ulps 2021-03-02 15:41:29 +01:00
ia64 Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
ieee754
m68k m68k: Implement backtrace on top of <unwind-link.h> 2021-03-01 15:59:12 +01:00
mach Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
microblaze
mips Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
nios2
nptl nptl: __libc_cleanup_push/__libc_cleanup_pop require -fexceptions 2021-03-02 11:56:33 +01:00
posix nss: fix nss_database_lookup2's alternate handling [BZ #27416] 2021-03-09 14:34:50 -05:00
powerpc powerpc: Regenerate ulps 2021-03-03 18:39:17 +01:00
pthread [PATCH] pthread_once hangs when init routine throws an exception [BZ #18435] 2021-03-04 15:15:33 +01:00
riscv
s390 s390x: Regenerate ulps 2021-03-03 12:44:21 +01:00
sh Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
sparc Update sparc libm-test-ulps 2021-03-05 08:34:40 -03:00
unix tst: Add test for ntp_adjtime 2021-03-08 22:41:41 +01:00
wordsize-32
wordsize-64
x86 x86: Set minimum x86-64 level marker [BZ #27318] 2021-03-06 07:49:30 -08:00
x86_64