summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lastlogin
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-10-29 00:40:05 +0000
committerdillon <dillon@FreeBSD.org>2001-10-29 00:40:05 +0000
commit7c3ce536c4c0a0c25f092b58ef7adc512ee62473 (patch)
tree75580a0064b68bce3e1c49667a8eebef8761cd0a /usr.sbin/lastlogin
parent7745d91e4f4ea0a79951a57a353cfdad81aabe74 (diff)
downloadFreeBSD-src-7c3ce536c4c0a0c25f092b58ef7adc512ee62473.zip
FreeBSD-src-7c3ce536c4c0a0c25f092b58ef7adc512ee62473.tar.gz
Fix ctime(&int) due to change to lastlog->ll_time
Diffstat (limited to 'usr.sbin/lastlogin')
-rw-r--r--usr.sbin/lastlogin/lastlogin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c
index 877b215..df8faca 100644
--- a/usr.sbin/lastlogin/lastlogin.c
+++ b/usr.sbin/lastlogin/lastlogin.c
@@ -116,11 +116,12 @@ output(p, l)
struct passwd *p;
struct lastlog *l;
{
+ time_t t = int_to_time(l->ll_time);
printf("%-*.*s %-*.*s %-*.*s %s",
UT_NAMESIZE, UT_NAMESIZE, p->pw_name,
UT_LINESIZE, UT_LINESIZE, l->ll_line,
UT_HOSTSIZE, UT_HOSTSIZE, l->ll_host,
- (l->ll_time) ? ctime(&(l->ll_time)) : "Never logged in\n");
+ (l->ll_time) ? ctime(&t) : "Never logged in\n");
}
static void
OpenPOWER on IntegriCloud