From bd2447287f8342aab14328539954a6d4f198a733 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Tue, 25 Oct 2011 14:08:22 +0200 Subject: [PATCH] periodic/daily: Fix the check for denied zone transfers (AXFR and IXFR). Just use grep -E here (fgrep -E seems to have stopped working at some point anyway). --- etc/periodic/daily/470.status-named | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/periodic/daily/470.status-named b/etc/periodic/daily/470.status-named index c132d8b55b..b85b6e5839 100644 --- a/etc/periodic/daily/470.status-named +++ b/etc/periodic/daily/470.status-named @@ -1,7 +1,6 @@ #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/470.status-named,v 1.8 2006/06/11 20:39:12 maxim Exp $ -# $DragonFly: src/etc/periodic/daily/470.status-named,v 1.4 2007/12/29 21:44:44 matthias Exp $ # # If there is a global system configuration file, suck it in. @@ -32,7 +31,7 @@ case "$daily_status_named_enable" in start=`date -v-1d '+%b %e'` rc=$(catmsgs | - fgrep -E "^$start.*named\[[[:digit:]]+\]: transfer of .*failed .*: REFUSED" | + grep -E "^$start.*named\[[[:digit:]]+\]: transfer of .*failed .*: REFUSED" | sed -e "s/.*transfer of \'\(.*\)\/IN\' from \(.*\)#[0-9]*: .*/\1 from \2/" | sort -f | uniq -ic | ( usedns=0 -- 2.41.0