]> git.ipfire.org Git - thirdparty/util-linux.git/commit
last: fix first (current) runlevel line
authorRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 24 Mar 2015 13:38:09 +0000 (14:38 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Apr 2015 10:24:34 +0000 (12:24 +0200)
commit96c76c7effc2e58fe9b7780510f6a5025234964c
treed6560adae56bf5ba6a187ddde9474094cb54a863
parent902e1d727e2c2ad5128c25bbbd8680431652e842
last: fix first (current) runlevel line

Since 744c7fec lastrch was not set to current time anymore, but we need it.

 # broken:
 $ ./last -x | grep -m 2 runlevel
 runlevel (to lvl 5)   3.11.10-25-deskt Wed Feb 18 13:11 - 01:00 (-16484+-12:-11)
 runlevel (to lvl 5)   3.11.10-25-deskt Thu Jan 22 16:50 - 13:11 (26+20:21)

 # fixed:
 $ ./last -x | grep -m 2 runlevel
 runlevel (to lvl 5)   3.11.10-25-deskt Wed Feb 18 13:11   still running
 runlevel (to lvl 5)   3.11.10-25-deskt Thu Jan 22 16:50 - 13:11 (26+20:21)

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
login-utils/last.c