1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/sysutils/tcplist/files/patch-03
Sheldon Hearn 10d709045e 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>
1999-06-28 09:53:02 +00:00

12 lines
462 B
Plaintext

--- 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 */