diff --git a/lib/nss.c b/lib/nss.c index 23d05182..89de2ac9 100644 --- a/lib/nss.c +++ b/lib/nss.c @@ -59,6 +59,9 @@ void nss_init(const char *nsswitch_path) { // subid: files nssfp = fopen(nsswitch_path, "r"); if (!nssfp) { + if (errno != ENOENT) + fprintf(shadow_logfd, "Failed opening %s: %m\n", nsswitch_path); + atomic_store(&nss_init_completed, true); return; }