]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam_systemd: fix error logs
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Sep 2025 16:18:54 +0000 (18:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Sep 2025 12:40:16 +0000 (14:40 +0200)
commitaf373bbcb96fe9a57a0d5cf7629eb09f752f1c09
tree0d1103b4332937bbcc504057a44f701c2c3856d9
parent75924efd5a8ddc796c5f2a179a50f137294c868c
pam_systemd: fix error logs

The code was of two minds about error_id: it was used directly in
pam_syslog_errno(), but in the next line checked with streq_ptr().
sd_varlink_callbo() may return negative and then it does not set the output
params, or it returns the error in ret_error_id. We cannot assume that error_id
is non-null. Also fix a select-and-paste mistake in one place.
src/login/pam_systemd.c