summaryrefslogtreecommitdiffstats
path: root/sysutils/tcplist/files
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-06-28 09:53:02 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-06-28 09:53:02 +0000
commit80c2fa21cb1f2634c83da46674cf99f7e576afe5 (patch)
treed4eec1038fdd5271ccfc8a6130d0e69855c6c78e /sysutils/tcplist/files
parent753cc6ea658516c2fa1680975a6fd0887521097f (diff)
downloadFreeBSD-ports-80c2fa21cb1f2634c83da46674cf99f7e576afe5.zip
FreeBSD-ports-80c2fa21cb1f2634c83da46674cf99f7e576afe5.tar.gz
Fix tcplist for the version of lsof in the ports tree. It wasn't parsing
lsof's output correctly. PR: 9191 Submitted by: Andrew Stevenson <andrew@ugh.net.au>
Diffstat (limited to 'sysutils/tcplist/files')
-rw-r--r--sysutils/tcplist/files/patch-0311
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/tcplist/files/patch-03 b/sysutils/tcplist/files/patch-03
new file mode 100644
index 0000000..22d8942
--- /dev/null
+++ b/sysutils/tcplist/files/patch-03
@@ -0,0 +1,11 @@
+--- lsof.c.orig Tue Mar 9 11:49:40 1999
++++ lsof.c Tue Mar 9 11:51:17 1999
+@@ -27,7 +27,7 @@
+ #define LSOFCMD "lsof -HPsli TCP | awk '{print $3,$NF}' | sort | uniq"
+ #else /* !OLDLSOF */
+ /* These use the current (as of 3.62W, at least) parameters for lsof */
+-#define LSOFCMD "lsof -nPsli TCP | awk '{print $3,$NF}' | sort | uniq"
++#define LSOFCMD "lsof -nPsli TCP | awk '{print $3,$(NF - 1)}' | sort | uniq"
+ #endif /* !OLDLSOF */
+ #endif /* LSOFCMD */
+
OpenPOWER on IntegriCloud