Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 2010 09:29:25 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r205365 - head/usr.sbin/lastlogin
Message-ID:  <201003200929.o2K9TPhN031438@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003200929.o2K9TPhN031438>