]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam-util: fix pam_syslog_pam_error() format string
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Nov 2023 10:05:52 +0000 (11:05 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 28 Nov 2023 15:36:51 +0000 (15:36 +0000)
commitf200d6cae34f74f9b9ddd52ea9cae5b3de4efb95
tree9ab25aef65c46bfa6f9fff4a589c27365a0a83ff
parent0d5f59a248b50d7a3018ebfcdb13a2ddf0ff6e54
pam-util: fix pam_syslog_pam_error() format string

To cut off a string at some position we must set the "precision" not the
field width in format strings.

This led to some assert()s being hit where they really should not be.
src/shared/pam-util.c