svn commit: r205365 - head/usr.sbin/lastlogin
Ed Schouten
ed at FreeBSD.org
Sat Mar 20 09:29:25 UTC 2010
Author: ed
Date: Sat Mar 20 09:29:25 2010
New Revision: 205365
URL: http://svn.freebsd.org/changeset/base/205365
Log:
Chop off excessive long hostnames to keep the table structure intact.
This makes lastlogin(8) use exactly the same printf format as last(1).
Modified:
head/usr.sbin/lastlogin/lastlogin.c
Modified: head/usr.sbin/lastlogin/lastlogin.c
==============================================================================
--- head/usr.sbin/lastlogin/lastlogin.c Sat Mar 20 05:49:06 2010 (r205364)
+++ head/usr.sbin/lastlogin/lastlogin.c Sat Mar 20 09:29:25 2010 (r205365)
@@ -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));
}
More information about the svn-src-head
mailing list