]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/shadowlog_internal.h: Drop shadow_logfd
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 11 Jan 2026 11:28:46 +0000 (12:28 +0100)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Mon, 12 Jan 2026 13:27:05 +0000 (14:27 +0100)
commitecaae2f8cdc52676eea2d2e9592cc7b2b6588e7a
tree3c87ba3f560a1923d87b7a1ba74bb7831d2a8180
parent828f465cd22dc2bc0c185b5f38bdcc3837615717
lib/shadowlog_internal.h: Drop shadow_logfd

Accessing this variable directly is a recipe for disaster, because
binaries and libraries can have different versions in them due to how
libshadow_la linking is performed.

Make sure that at least NULL check is always performed by calling the
proper getter function.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
17 files changed:
lib/addgrps.c
lib/chowntty.c
lib/commonio.c
lib/copydir.c
lib/encrypt.c
lib/getdef.c
lib/gettime.c
lib/nscd.c
lib/nss.c
lib/pam_pass.c
lib/run_part.c
lib/selinux.c
lib/semanage.c
lib/shadowlog.c
lib/shadowlog_internal.h
lib/spawn.c
lib/tcbfuncs.c