From 10d709045eb7651f9310498567cde2d3f6196941 Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Mon, 28 Jun 1999 09:53:02 +0000 Subject: [PATCH] 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 --- sysutils/tcplist/files/patch-03 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sysutils/tcplist/files/patch-03 diff --git a/sysutils/tcplist/files/patch-03 b/sysutils/tcplist/files/patch-03 new file mode 100644 index 000000000000..22d8942a3757 --- /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 */ +