SHA256
3
0
forked from pool/glibc
glibc/glibc-nsswitch-usr.diff
Andreas Schwab b855cdeb01 Accepting request 876230 from home:Andreas_Schwab:Factory
- 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
2021-03-02 13:18:55 +00:00

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)
{