projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hush: initial stab at brace expansion support
[oweals/busybox.git]
/
miscutils
/
last.c
diff --git
a/miscutils/last.c
b/miscutils/last.c
index 8c8192beee80ffb70a367201eb3e60925aedb572..f8c301395de14cd961fc22ce330a71f06697e0eb 100644
(file)
--- a/
miscutils/last.c
+++ b/
miscutils/last.c
@@
-117,6
+117,8
@@
int last_main(int argc, char **argv UNUSED_PARAM)
strcpy(ut.ut_line, "system boot");
}
}
+ /* manpages say ut_tv.tv_sec *is* time_t,
+ * but some systems have it wrong */
t_tmp = (time_t)ut.ut_tv.tv_sec;
printf("%-10s %-14s %-18s %-12.12s\n",
ut.ut_user, ut.ut_line, ut.ut_host, ctime(&t_tmp) + 4);