forked from pool/glibc
Andreas Schwab
b855cdeb01
- Disable x86 ISA level for now (bsc#1182522, BZ #27318) - nss-revert-api.patch: Workaround for nss-compat brokeness (bsc#1182247, BZ #27416) OBS-URL: https://build.opensuse.org/request/show/876230 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=583
16 lines
567 B
Diff
16 lines
567 B
Diff
Index: glibc-2.33/nss/nsswitch.c
|
|
===================================================================
|
|
--- glibc-2.33.orig/nss/nsswitch.c
|
|
+++ glibc-2.33/nss/nsswitch.c
|
|
@@ -126,6 +126,10 @@ __nss_database_lookup2 (const char *data
|
|
/* Read config file. */
|
|
service_table = nss_parse_file (_PATH_NSSWITCH_CONF);
|
|
|
|
+ /* Retry with the OS vendor provided config file. */
|
|
+ if (service_table == NULL)
|
|
+ service_table = nss_parse_file ("/usr" _PATH_NSSWITCH_CONF);
|
|
+
|
|
/* Test whether configuration data is available. */
|
|
if (service_table != NULL)
|
|
{
|