]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Don't warn when failed to open /etc/nsswitch.conf
authorSerge Hallyn <serge@hallyn.com>
Mon, 7 Nov 2022 15:54:50 +0000 (09:54 -0600)
committerSerge Hallyn <serge@hallyn.com>
Tue, 8 Nov 2022 16:18:17 +0000 (10:18 -0600)
Maybe we should have a debug mode where it's still printed, but
we don't, so let's be quieter.

Closes #557

lib/nss.c

index 06fa48e51902bab2dedea977781b5d2ab1dd39d3..23d05182287a397bc580580a6ede0ea687bf30e5 100644 (file)
--- 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;
        }