This affects option --time-format=notime.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
if (ctl->time_fmt > LAST_TIMEFTM_SHORT_CTIME) {
sprintf(logouttime, " gone - no logout");
length[0] = 0;
- } else {
+ } else if (ctl->time_fmt == LAST_TIMEFTM_SHORT_CTIME) {
sprintf(logouttime, " gone");
sprintf(length, "- no logout");
+ } else {
+ logouttime[0] = 0;
+ sprintf(length, "no logout");
}
break;
case R_REBOOT:
wtmp begins Wed Aug 28 03:00:00 2013
~~~ no time ~~~
rick long never-gonna-logo (24855+03:14)
-torvalds linux hobby - no logout
+torvalds linux hobby no logout
reboot system boot system-name running
reboot system boot system-name (01:00)
IPv4 root dns-server (01:00)