diff options
author | des <des@FreeBSD.org> | 2001-03-15 20:46:35 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-03-15 20:46:35 +0000 |
commit | 3bd182ef546ef14b9fb008ad1f3016d2996296ce (patch) | |
tree | 89fad22f64b8169f62bfe7087218253c974d62f3 /usr.bin | |
parent | cd8d72036779073e9a559040e5b29558621cdc99 (diff) | |
download | FreeBSD-src-3bd182ef546ef14b9fb008ad1f3016d2996296ce.zip FreeBSD-src-3bd182ef546ef14b9fb008ad1f3016d2996296ce.tar.gz |
Use the newly introduced -W flag to netstat(1) to avoid truncated addresses.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sockstat/sockstat.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sockstat/sockstat.pl b/usr.bin/sockstat/sockstat.pl index 5ac1cc9..0f871c5 100644 --- a/usr.bin/sockstat/sockstat.pl +++ b/usr.bin/sockstat/sockstat.pl @@ -53,7 +53,7 @@ sub gather() { if (!defined($pid = open(PIPE, "-|"))) { die("open(netstat): $!\n"); } elsif ($pid == 0) { - exec("/usr/bin/netstat", "-Aan"); + exec("/usr/bin/netstat", "-AanW"); die("exec(netstat): $!\n"); } while ($line = <PIPE>) { |