]> git.ipfire.org Git - thirdparty/util-linux.git/commit
last: use full size of the username
authorKarel Zak <kzak@redhat.com>
Mon, 13 Feb 2023 15:22:23 +0000 (16:22 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Feb 2023 15:22:23 +0000 (16:22 +0100)
commit4b646f01600a5efcf16e8e8991010b49b250bdfe
tree7bb12f3a8955d21075d535a4cd334225298a7d77
parentf191801c142e9fcf9d735b6b014aa1a18050a08d
last: use full size of the username

utmp uses 32 bytes for username, last(1) truncates it to 31 when calls getpwnam().

Reported-by: Radka Skvarilova <rskvaril@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/last.1.adoc
login-utils/last.c