From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 9 13:50:09 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA2EA16A41F for ; Mon, 9 Jan 2006 13:50:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C9F843D49 for ; Mon, 9 Jan 2006 13:50:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k09Do8fH081162 for ; Mon, 9 Jan 2006 13:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k09Do8g3081161; Mon, 9 Jan 2006 13:50:08 GMT (envelope-from gnats) Resent-Date: Mon, 9 Jan 2006 13:50:08 GMT Resent-Message-Id: <200601091350.k09Do8g3081161@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, Rolf Grossmann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A40016A41F for ; Mon, 9 Jan 2006 13:42:47 +0000 (GMT) (envelope-from grossman@progtech.net) Received: from ptserver.progtech.net (ppp-82-135-8-78.mnet-online.de [82.135.8.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFB6E43D46 for ; Mon, 9 Jan 2006 13:42:46 +0000 (GMT) (envelope-from grossman@progtech.net) Received: from progtech.net (localhost [127.0.0.1]) by ptserver.progtech.net (8.13.3/8.12.11) with ESMTP id k09DgiO8017841 for ; Mon, 9 Jan 2006 14:42:44 +0100 (CET) (envelope-from grossman@progtech.net) Received: (from grossman@localhost) by progtech.net (8.13.3/8.12.3/Submit) id k09DghqB017840; Mon, 9 Jan 2006 14:42:43 +0100 (CET) Message-Id: <200601091342.k09DghqB017840@progtech.net> Date: Mon, 9 Jan 2006 14:42:43 +0100 (CET) From: Rolf Grossmann To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/91553: Make portaudit call programs in /sbin with full path 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: Mon, 09 Jan 2006 13:50:09 -0000 >Number: 91553 >Category: ports >Synopsis: Make portaudit call programs in /sbin with full path >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 09 13:50:07 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Rolf Grossmann >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD ptserver 5.4-STABLE FreeBSD 5.4-STABLE #2: Fri Jul 8 00:16:17 CEST 2005 grossman@ipcover:/export/FreeBSD/src/sys/i386/compile/PTSERVER i386 >Description: I've tried running portaudit from cron and I had to change two calls, because /sbin is not in the default path. >How-To-Repeat: Run portaudit from cron. >Fix: --- /tmp/portaudit-cmd.sh.orig Mon Jan 9 14:32:12 2006 +++ /usr/ports/security/portaudit/files/portaudit-cmd.sh Mon Jan 9 14:32:28 2006 @@ -58,7 +58,7 @@ { chksum1=`extract_auditfile | sed -nE -e '$s/^#CHECKSUM: *MD5 *([0-9a-f]{32})$/\1/p'` - chksum2=`extract_auditfile | sed -e '$d' | md5` + chksum2=`extract_auditfile | sed -e '$d' | /sbin/md5` [ "$chksum1" = "$chksum2" ]; } @@ -128,7 +128,7 @@ audit_installed() { local rc=0 - local osversion=`sysctl -n kern.osreldate` + local osversion=`/sbin/sysctl -n kern.osreldate` fixedre=`echo -n $portaudit_fixed | tr -c '[:alnum:]- \t\n' 'x' | tr -s ' \t\n' '|'` >Release-Note: >Audit-Trail: >Unformatted: