forked from pool/glibc
Andreas Schwab
73548df098
- install nsswitch.conf in /usr - package gai.conf as %doc only. The default config is empty so not needed. - move gconv modules to separate subpackage OBS-URL: https://build.opensuse.org/request/show/800973 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=559
16 lines
548 B
Diff
16 lines
548 B
Diff
Index: glibc-2.31/nss/nsswitch.c
|
|
===================================================================
|
|
--- glibc-2.31.orig/nss/nsswitch.c
|
|
+++ glibc-2.31/nss/nsswitch.c
|
|
@@ -134,6 +134,10 @@ __nss_database_lookup2 (const char *data
|
|
/* Read config file. */
|
|
service_table = nss_parse_file (_PATH_NSSWITCH_CONF);
|
|
|
|
+ /* retry os vendor provided one */
|
|
+ if (service_table == NULL)
|
|
+ service_table = nss_parse_file ("/usr" _PATH_NSSWITCH_CONF);
|
|
+
|
|
/* Test whether configuration data is available. */
|
|
if (service_table != NULL)
|
|
{
|