From 834914931717e38e7c2a30c1485f1c2834e70fec Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 25 Apr 1998 00:40:19 +0000 Subject: print year; mason@primenet.com.au --- usr.bin/last/last.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c index 0ed23c45142..742a9c3d864 100644 --- a/usr.bin/last/last.c +++ b/usr.bin/last/last.c @@ -1,4 +1,4 @@ -/* $OpenBSD: last.c,v 1.9 1998/03/10 00:50:40 downsj Exp $ */ +/* $OpenBSD: last.c,v 1.10 1998/04/25 00:40:18 deraadt Exp $ */ /* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)last.c 8.2 (Berkeley) 4/2/94"; #endif -static char rcsid[] = "$OpenBSD: last.c,v 1.9 1998/03/10 00:50:40 downsj Exp $"; +static char rcsid[] = "$OpenBSD: last.c,v 1.10 1998/04/25 00:40:18 deraadt Exp $"; #endif /* not lint */ #include @@ -418,7 +418,8 @@ wtmp() asctime(gmtime(&total))+11); } ct = ctime(&buf[0].ut_time); - printf("\nwtmp begins %10.10s %*.*s \n", ct, timesize, timesize, ct + 11); + printf("\nwtmp begins %10.10s %*.*s %4.4s\n", ct, timesize, timesize, + ct + 11, ct + 20); } /* -- cgit v1.2.3