Re: Removing perl traces from src/etc/periodic

Giorgos Keramidas <[email protected]>
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
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 [email protected]
with "unsubscribe freebsd-audit" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.