svn commit: r296873 - head/usr.bin/finger
Kurt Lidl
lidl at FreeBSD.org
Mon Mar 14 22:20:23 UTC 2016
Author: lidl
Date: Mon Mar 14 22:20:22 2016
New Revision: 296873
URL: https://svnweb.freebsd.org/changeset/base/296873
Log:
Do not truncate office phones in finger's summary listing
When finger is invoked as as "finger username", it produces the
long listing by default, and phones numbers are pretty-printed
by the prphone() function. When invoked as just "finger", the
same pretty-printing happens, but is truncated at 9 characters.
Given the summary listing is already greater than 80 columns,
making it even wider is of no harm.
Approved by: rpaulo (mentor)
Differential Revision: https://reviews.freebsd.org/D5638
Modified:
head/usr.bin/finger/sprint.c
Modified: head/usr.bin/finger/sprint.c
==============================================================================
--- head/usr.bin/finger/sprint.c Mon Mar 14 21:00:16 2016 (r296872)
+++ head/usr.bin/finger/sprint.c Mon Mar 14 22:20:22 2016 (r296873)
@@ -149,7 +149,7 @@ office:
else if (pn->officephone)
(void)printf(" %-7.7s", " ");
if (pn->officephone)
- (void)printf(" %-.9s",
+ (void)printf(" %-.15s",
prphone(pn->officephone));
} else
(void)printf(" %.*s", MAXHOSTNAME, w->host);
More information about the svn-src-all
mailing list