From: Serge Hallyn Date: Mon, 7 Nov 2022 15:54:50 +0000 (-0600) Subject: Don't warn when failed to open /etc/nsswitch.conf X-Git-Tag: 4.13~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90424e7c20a80491b66e48a89a9c5dfbf7d33990;p=thirdparty%2Fshadow.git Don't warn when failed to open /etc/nsswitch.conf Maybe we should have a debug mode where it's still printed, but we don't, so let's be quieter. Closes #557 --- diff --git a/lib/nss.c b/lib/nss.c index 06fa48e51..23d051822 100644 --- a/lib/nss.c +++ b/lib/nss.c @@ -59,7 +59,6 @@ void nss_init(const char *nsswitch_path) { // subid: files nssfp = fopen(nsswitch_path, "r"); if (!nssfp) { - fprintf(shadow_logfd, "Failed opening %s: %m\n", nsswitch_path); atomic_store(&nss_init_completed, true); return; }