openbsd-ports/sysutils/tcplist/patches/patch-02
wilfried f64648eb9a respect CC/CFLAGS
change to unified diff format
add cvs tag
2001-03-12 15:02:26 +00:00

13 lines
522 B
Plaintext

$OpenBSD: patch-02,v 1.2 2001/03/12 15:02:26 wilfried Exp $
--- lsof.c.orig Mon Mar 12 16:01:00 2001
+++ lsof.c Mon Mar 12 16:01:00 2001
@@ -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 */