daemon: fix logout time association
@oholy
Submitted by Ondrej Holy Assigned to Matthias Clasen @mclasen
Description
Created attachment 87824 fix logout time association
Use boot time as logout time only if it is bigger then login time. From some reasons there are sometimes boot records after the login records with lower times in wtmp...
Also last utility have same problem with determining correct last time:
oholy19 pts/1 :0 Thu Oct 17 12:20 still logged in
oholy19 pts/0 :0 Thu Oct 17 11:59 - 18:07 (06:07)
reboot system boot 3.11.3-201.fc19. Thu Oct 17 11:53 - 16:48 (1+04:55)
oholy19 :0 :0 Thu Oct 17 11:54 - crash (00:00)
(unknown :0 :0 Thu Oct 17 11:54 - 11:54 (00:00)
There should be "still logged in" instead of crash.
See: https://bugzilla.redhat.com/show_bug.cgi?id=1003519
Patch 87824, "fix logout time association":
0001-daemon-fix-logout-time-association.patch