diff options
author | ed <ed@FreeBSD.org> | 2010-03-20 09:29:25 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-03-20 09:29:25 +0000 |
commit | ee51a2438220456f3b66fcbbfd891b55bbefd0fb (patch) | |
tree | dd97044d7951ea078ede5cf7dea06449025cdae9 /usr.sbin/lastlogin/lastlogin.c | |
parent | e17e52b7e2dffab4f1200b2f010c3ef8cb1132d7 (diff) | |
download | FreeBSD-src-ee51a2438220456f3b66fcbbfd891b55bbefd0fb.zip FreeBSD-src-ee51a2438220456f3b66fcbbfd891b55bbefd0fb.tar.gz |
Chop off excessive long hostnames to keep the table structure intact.
This makes lastlogin(8) use exactly the same printf format as last(1).
Diffstat (limited to 'usr.sbin/lastlogin/lastlogin.c')
-rw-r--r-- | usr.sbin/lastlogin/lastlogin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |