svn commit: r196137 - head/usr.sbin/jls

Bjoern A. Zeeb bz at FreeBSD.org
Wed Aug 12 12:29:18 UTC 2009


Author: bz
Date: Wed Aug 12 12:29:07 2009
New Revision: 196137
URL: http://svn.freebsd.org/changeset/base/196137

Log:
  Do not truncate IPv6 addresses when printing them in the
  jls -av 7.x multi-IP jail backward compat output.
  
  Reported by:	ed
  Tested by:	ed
  Reviewed by:	rwatson
  Approved by:	re

Modified:
  head/usr.sbin/jls/jls.c

Modified: head/usr.sbin/jls/jls.c
==============================================================================
--- head/usr.sbin/jls/jls.c	Wed Aug 12 12:14:30 2009	(r196136)
+++ head/usr.sbin/jls/jls.c	Wed Aug 12 12:29:07 2009	(r196137)
@@ -359,7 +359,7 @@ print_jail(int pflags, int jflags)
 				    ipbuf, sizeof(ipbuf)) == NULL)
 					err(1, "inet_ntop");
 				else
-					printf("%6s  %-15.15s\n", "", ipbuf);
+					printf("%6s  %s\n", "", ipbuf);
 		}
 	} else if (pflags & PRINT_DEFAULT)
 		printf("%6d  %-15.15s %-29.29s %.74s\n",


More information about the svn-src-head mailing list