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));
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to