ports/128538: [MAINTAINER] sysutils/lsof: Apply vendor patch

Larry Rosenman ler at lerctr.org
Sun Nov 2 14:10:02 UTC 2008


>Number:         128538
>Category:       ports
>Synopsis:       [MAINTAINER] sysutils/lsof: Apply vendor patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 02 14:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Larry Rosenman
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
LERCTR Consulting
>Environment:
System: FreeBSD thebighonker.lerctr.org 7.0-STABLE FreeBSD 7.0-STABLE #14: Sat Aug  9 09:47:30 CDT
>Description:
Apply the following vendor patch:
---
A patch to lsof 4.81 is now available that corrects over-zealous
rejection of open file listing when no options are specified to
lsof and lsof security options are enabled.

For example, an lsof compiled with HASSECURITY and HASNOSOCKSECURITY
options enabled will produce little or no output when run without
options.
---

Added file(s):
- files/patch-proc.c

Bump PORTREVISION
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- lsof-4.81_1,3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sysutils/lsof/Makefile /home/ler/ports/sysutils/lsof/Makefile
--- /usr/ports/sysutils/lsof/Makefile	2008-11-02 08:02:45.595799109 -0600
+++ /home/ler/ports/sysutils/lsof/Makefile	2008-11-02 08:05:39.065212104 -0600
@@ -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 -ruN --exclude=CVS /usr/ports/sysutils/lsof/files/patch-proc.c /home/ler/ports/sysutils/lsof/files/patch-proc.c
--- /usr/ports/sysutils/lsof/files/patch-proc.c	1969-12-31 18:00:00.000000000 -0600
+++ /home/ler/ports/sysutils/lsof/files/patch-proc.c	2008-11-02 07:57:09.266300848 -0600
@@ -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)
--- lsof-4.81_1,3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list