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 Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
arm Update arm libm-test-ulps 2021-03-05 08:35:24 -03:00
csky Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
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 linux: Require /dev/shm as the shared memory file system 2021-02-08 14:10:42 -03:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
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 math: Add BZ#18980 fix back on dbl-64 cosh 2021-01-11 16:56:33 -03:00
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 Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
mips Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
nios2 Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
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 Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
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 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
x86 x86: Set minimum x86-64 level marker [BZ #27318] 2021-03-06 07:49:30 -08:00
x86_64 Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00