From ee51a2438220456f3b66fcbbfd891b55bbefd0fb Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 20 Mar 2010 09:29:25 +0000 Subject: Chop off excessive long hostnames to keep the table structure intact. This makes lastlogin(8) use exactly the same printf format as last(1). --- usr.sbin/lastlogin/lastlogin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c index a1b5b6e..ae3ba99 100644 --- a/usr.sbin/lastlogin/lastlogin.c +++ b/usr.sbin/lastlogin/lastlogin.c @@ -91,7 +91,7 @@ output(struct utmpx *u) { time_t t = u->ut_tv.tv_sec; - printf("%-10s %-8s %-22s %s", + printf("%-10s %-8s %-22.22s %s", u->ut_user, u->ut_line, u->ut_host, ctime(&t)); } -- cgit v1.1