mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Change .8s port name restriction to .15s, modern tcp port
have longer names, check /etc/services. kerberos_master triggers this bug: it is undistiguishable from simple kerberos for .8s
This commit is contained in:
parent
a66e17dec5
commit
1ef69972ad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12996
@ -445,7 +445,7 @@ inetprint(in, port, proto)
|
||||
if (!nflag && port)
|
||||
sp = getservbyport((int)port, proto);
|
||||
if (sp || port == 0)
|
||||
sprintf(cp, "%.8s", sp ? sp->s_name : "*");
|
||||
sprintf(cp, "%.15s", sp ? sp->s_name : "*");
|
||||
else
|
||||
sprintf(cp, "%d", ntohs((u_short)port));
|
||||
width = Aflag ? 18 : 22;
|
||||
|
Loading…
Reference in New Issue
Block a user