From owner-freebsd-audit Wed May 29 14: 6:51 2002 Delivered-To: freebsd-audit@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id DF23B37B400; Wed, 29 May 2002 14:06:43 -0700 (PDT) Received: from hades.hell.gr (patr530-a118.otenet.gr [212.205.215.118]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g4TL6d0j010767; Thu, 30 May 2002 00:06:41 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g4TL6SQf066615; Thu, 30 May 2002 00:06:39 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g4TKGcx7058561; Wed, 29 May 2002 23:16:38 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Date: Wed, 29 May 2002 23:16:37 +0300 From: Giorgos Keramidas To: freebsd-audit@FreeBSD.org Cc: "Crist J. Clark" Subject: Re: Removing perl traces from src/etc/periodic Message-ID: <20020529201635.GB57789@hades.hell.gr> References: <20020529152010.GA13893@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020529152010.GA13893@hades.hell.gr> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-05-29 18:20 +0300, Giorgos Keramidas wrote: > Index: etc/periodic/security/650.ip6fwlimit > - ip6fw -a l | grep " log " | perl -n -e \ > - '/^\d+\s+(\d+)/; print if ($1 >= '$IP6FW_LOG_LIMIT')' > ${TMP} > + ip6fw -a l | grep " log " | \ > + grep '^[[:digit:]]\+[[:space:]]\+[[:digit:]]\+' | \ > + awk -v limit="$IPFW_LOG_LIMIT" \ Of course this should have been awk -v limit="${IP6FW_LOG_LIMIT}". Chris' comments were the reason for a more careful reading of this part, and I discovered this sneaky little bug I managed to introduce while copy/pasting. Already fixed & merged with Chris' (grep+awk -> awk) changes at: http://www.FreeBSD.org/~keramida/diff/2002-05-29.periodic,aa - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message