]> git.ipfire.org Git - thirdparty/shadow.git/commit
nss: get shadow_logfd with log_get_logfd()
authorIker Pedrosa <ipedrosa@redhat.com>
Mon, 10 Jan 2022 14:30:28 +0000 (15:30 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 15 Jan 2022 14:47:50 +0000 (08:47 -0600)
commite101219ad71de11da3fdd1b3ec2620fd1a97b92c
tree549b2b8bb95f64f763dd2d49d79ad26a0e1e15f8
parentfd5945e53342cf5017ca3157518fa69f8ac3e133
nss: get shadow_logfd with log_get_logfd()

If /etc/nsswitch.conf doesn't exist podman crashes because shadow_logfd
is NULL. In order to avoid that load the log file descriptor with the
log_get_logfd() helper function.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2038811

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
lib/nss.c