diff options
author | wxs <wxs@FreeBSD.org> | 2008-11-03 04:06:43 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2008-11-03 04:06:43 +0800 |
commit | 3d9817d2a0d7cd94b6db79aa73bbad73b8a7bd28 (patch) | |
tree | ce35ce9328b03dbccd2269c34e106ef9d08ecacb /sysutils/lsof | |
parent | c6b6e68f484f5c595174b4bec8a1a88dda583d42 (diff) | |
download | freebsd-ports-gnome-3d9817d2a0d7cd94b6db79aa73bbad73b8a7bd28.tar.gz freebsd-ports-gnome-3d9817d2a0d7cd94b6db79aa73bbad73b8a7bd28.tar.zst freebsd-ports-gnome-3d9817d2a0d7cd94b6db79aa73bbad73b8a7bd28.zip |
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)
Diffstat (limited to 'sysutils/lsof')
-rw-r--r-- | sysutils/lsof/Makefile | 1 | ||||
-rw-r--r-- | sysutils/lsof/files/patch-proc.c | 19 |
2 files changed, 20 insertions, 0 deletions
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) |