]> git.ipfire.org Git - thirdparty/shadow.git/commit
Warn if failed to read existing /etc/nsswitch.conf
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 2 Jan 2023 15:11:58 +0000 (16:11 +0100)
committerSerge Hallyn <serge@hallyn.com>
Wed, 4 Jan 2023 20:21:43 +0000 (14:21 -0600)
commit1d936c968a213319eff46e78284c9dd45d6c79dd
tree465fa86b2321e15b5f46179fb66bc905aa37cb19
parent609c6413238db7c49e11a0ce5c08ad8f1d6b3424
Warn if failed to read existing /etc/nsswitch.conf

Commit 90424e7c ("Don't warn when failed to open /etc/nsswitch.conf")
removed the logging for failing to read /etc/nsswitch.conf to reduce the
noise in the case the file does not exists (e.g. musl based systems).

Reintroduce a warning if /etc/nsswitch.conf exists but we failed to read
it (e.g. permission denied).

Improves: 90424e7c ("Don't warn when failed to open /etc/nsswitch.conf")
lib/nss.c