From 3d9817d2a0d7cd94b6db79aa73bbad73b8a7bd28 Mon Sep 17 00:00:00 2001 From: wxs Date: Sun, 2 Nov 2008 20:06:43 +0000 Subject: Apply a vendor patch that corrects over-zealous rejection of open file listing when no options are specificed to lsof and lsof security options are enabled. PR: ports/128538 Submitted by: Larry Rosenman (maintainer) --- sysutils/lsof/Makefile | 1 + sysutils/lsof/files/patch-proc.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sysutils/lsof/files/patch-proc.c (limited to 'sysutils/lsof') diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile index 1b65be0b11ed..cc373f29607f 100644 --- a/sysutils/lsof/Makefile +++ b/sysutils/lsof/Makefile @@ -8,6 +8,7 @@ PORTNAME= lsof PORTVERSION= 4.81 +PORTREVISION= 1 PORTEPOCH= 3 CATEGORIES= sysutils MASTER_SITES= http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ \ diff --git a/sysutils/lsof/files/patch-proc.c b/sysutils/lsof/files/patch-proc.c new file mode 100644 index 000000000000..998a446f6c5c --- /dev/null +++ b/sysutils/lsof/files/patch-proc.c @@ -0,0 +1,19 @@ +*** /tmp/T0fSaqTh Sun Nov 2 07:48:14 2008 +--- proc.c Sun Nov 2 07:44:24 2008 +*************** +*** 841,847 **** + { + if (Lf->sf & SELEXCLF) + return; +! if (((Selflags & SELNET) == SELNET) && !(Lf->sf & SELNET)) + return; + Lp->pss |= PS_SEC; + if (Plf) +--- 841,847 ---- + { + if (Lf->sf & SELEXCLF) + return; +! if ((Selflags == SELNET) && !(Lf->sf & SELNET)) + return; + Lp->pss |= PS_SEC; + if (Plf) -- cgit