Fix for latest version of lsof (the one in the ports anyway).

This commit is contained in:
angelos 1997-11-26 00:10:31 +00:00
parent 0dd2bdaa37
commit 9fbd33c2fe

View File

@ -0,0 +1,19 @@
*** lsof.c.orig Tue Nov 25 19:07:17 1997
--- lsof.c Tue Nov 25 19:04:03 1997
***************
*** 27,33 ****
#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"
#endif /* !OLDLSOF */
#endif /* LSOFCMD */
--- 27,33 ----
#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 - 1)}' | sort | uniq"
#endif /* !OLDLSOF */
#endif /* LSOFCMD */