]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/pam_systemd.c
pam_systemd: use pam_syslog_pam_error()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Oct 2022 12:59:50 +0000 (14:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Oct 2022 14:10:20 +0000 (16:10 +0200)
commitf48e93764fecae3e6acb7d248522878686377fde
treeb7f7d8adeb70ec0fcd8d9c70dc9a6262b7bbb77d
parente91b05f418b08c1e9c134c87b3e63264b18e348c
pam_systemd: use pam_syslog_pam_error()

Error handling in acquire_user_record() was checking the wrong
condition (PAM errors are always >= 0, so r < 0 cannot match).

Apart from the fix for error handling, no change in behaviour is intended.
I did some minor adjustements to formatting and added _cleanup_ in one more
place.
src/login/pam_systemd.c