From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Nov 2 14:10:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EE471065686 for ; Sun, 2 Nov 2008 14:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0E2F18FC13 for ; Sun, 2 Nov 2008 14:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mA2EA1gL033210 for ; Sun, 2 Nov 2008 14:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mA2EA1BA033209; Sun, 2 Nov 2008 14:10:01 GMT (envelope-from gnats) Resent-Date: Sun, 2 Nov 2008 14:10:01 GMT Resent-Message-Id: <200811021410.mA2EA1BA033209@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Larry Rosenman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0A95106567C for ; Sun, 2 Nov 2008 14:07:17 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) by mx1.freebsd.org (Postfix) with ESMTP id B657B8FC13 for ; Sun, 2 Nov 2008 14:07:17 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from ler by thebighonker.lerctr.org with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Kwdbp-000Kpq-8V for FreeBSD-gnats-submit@freebsd.org; Sun, 02 Nov 2008 08:07:17 -0600 Message-Id: Date: Sun, 02 Nov 2008 08:07:17 -0600 From: Larry Rosenman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/128538: [MAINTAINER] sysutils/lsof: Apply vendor patch X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2008 14:10:02 -0000 >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: