]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lastlog: improve errors printing
authorKarel Zak <kzak@redhat.com>
Tue, 20 Feb 2024 09:12:19 +0000 (10:12 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Feb 2024 09:12:19 +0000 (10:12 +0100)
commit4e86ac6f7faef64831da5b2dfcd2b40bb7179bc4
treea763c4e61497607327b58728a14a95931ceddeae
parentd2203ae361c228d232b2fa77d7503d1cc3526f75
lastlog: improve errors printing

- single exit by goto

- always print specific error (e.g. "Couldn't update login time ...")
  and then optionally generic ll2 error

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lastlog2.c