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
This commit is contained in:
parent
d6231037df
commit
6e786098f2
|
@ -149,7 +149,7 @@ office:
|
||||||
else if (pn->officephone)
|
else if (pn->officephone)
|
||||||
(void)printf(" %-7.7s", " ");
|
(void)printf(" %-7.7s", " ");
|
||||||
if (pn->officephone)
|
if (pn->officephone)
|
||||||
(void)printf(" %-.9s",
|
(void)printf(" %-.15s",
|
||||||
prphone(pn->officephone));
|
prphone(pn->officephone));
|
||||||
} else
|
} else
|
||||||
(void)printf(" %.*s", MAXHOSTNAME, w->host);
|
(void)printf(" %.*s", MAXHOSTNAME, w->host);
|
||||||
|
|
Loading…
Reference in New Issue