]> 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>
Thu, 22 Feb 2024 09:50:09 +0000 (10:50 +0100)
commit85f213c8f85935aa500f71ddda8b299d62e35528
tree360a06850ec6f5623fb142d3da98444c81803b94
parent375833806db9747c3a7206ba8d33afc53e038768
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>
(cherry picked from commit 4e86ac6f7faef64831da5b2dfcd2b40bb7179bc4)
misc-utils/lastlog2.c