summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-12-23 18:19:01 +0000
committerache <ache@FreeBSD.org>1995-12-23 18:19:01 +0000
commit6ef4e82f0f2c507c27c3787fb8e0d899e2dbadca (patch)
tree789c4898b85f2ad610a422f3225946904f9bf941 /usr.bin/netstat
parent7bbaffb06a667515a9ea26b613b7aa7712a027ad (diff)
downloadFreeBSD-src-6ef4e82f0f2c507c27c3787fb8e0d899e2dbadca.zip
FreeBSD-src-6ef4e82f0f2c507c27c3787fb8e0d899e2dbadca.tar.gz
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
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 8b92cb5..5526574 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -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;
OpenPOWER on IntegriCloud