diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:00:12 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:00:12 +0000 |
commit | 7792c21583f7131ad63a9cb6e25b7ef38652d3a7 (patch) | |
tree | 35ae86a1ec3a303f6ac7c0146111c635eff41fb4 /sysutils/tcplist/files/patch-lsof.c | |
parent | - Switch databases/libmemcache to USES=libtool, drop .la files (diff) |
Rename sysutils/ patch-xy patches to reflect the files they modify.
Notes
Notes:
svn path=/head/; revision=363335
Diffstat (limited to 'sysutils/tcplist/files/patch-lsof.c')
-rw-r--r-- | sysutils/tcplist/files/patch-lsof.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/tcplist/files/patch-lsof.c b/sysutils/tcplist/files/patch-lsof.c new file mode 100644 index 000000000000..66fef3d7788d --- /dev/null +++ b/sysutils/tcplist/files/patch-lsof.c @@ -0,0 +1,11 @@ +--- lsof.c.orig 2014-07-27 08:59:42.000000000 +0000 ++++ lsof.c +@@ -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 -nPls -iTCP | awk '{print $3,$(NF - 1)}' | tail -n+2 | sort | uniq" + #endif /* !OLDLSOF */ + #endif /* LSOFCMD */ + |