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
This commit is contained in:
parent
eaebea55a4
commit
90424e7c20
@ -59,7 +59,6 @@ void nss_init(const char *nsswitch_path) {
|
|||||||
// subid: files
|
// subid: files
|
||||||
nssfp = fopen(nsswitch_path, "r");
|
nssfp = fopen(nsswitch_path, "r");
|
||||||
if (!nssfp) {
|
if (!nssfp) {
|
||||||
fprintf(shadow_logfd, "Failed opening %s: %m\n", nsswitch_path);
|
|
||||||
atomic_store(&nss_init_completed, true);
|
atomic_store(&nss_init_completed, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user