]> err.no Git - util-linux/commit
last: fix utmp.ut_time usage
authorKarel Zak <kzak@redhat.com>
Fri, 20 Nov 2009 13:46:32 +0000 (14:46 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Nov 2009 13:46:32 +0000 (14:46 +0100)
commit8e5cf69f9e8132ce0aa499bfccabd5c45af8a50a
tree87275d43da66a67724f5ace5da80ea4c3d4e0425
parent12adebcc403a1c1548be6479f1792199c28419f3
last: fix utmp.ut_time usage

The utmp.ut_time is timeval.tv_sec (time_t) or int32_t. It's more
robust not to use ctime() or time() directly.

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