freebsd-ports/sysutils/lsof/files/patch-proc.c
Wesley Shields 23131ae2f6 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 <ler@lerctr.org> (maintainer)
2008-11-02 20:06:43 +00:00

19 lines
430 B
C

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