Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 09:51:46 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        rc@freebsd.org
Subject:   Re: Bug in 470.status-named?
Message-ID:  <47A0B932.7070308@FreeBSD.org>
In-Reply-To: <86r6fzzdzb.fsf@ds4.des.no>
References:  <86r6fzzdzb.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------020507010400030704080706
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Before I forget, rc.d != periodic, but we'll let you slide this time. :)

Dag-Erling Smørgrav wrote:
> Checking for denied zone transfers (AXFR and IXFR):
> [: 0: unexpected operator
> 
> It's intermittent, so I'm not sure if I can track down the exact cause.

Try this patch for debugging purposes. If you hit the debug statement 
post to hackers@ and we'll follow up.

hth,

Doug

-- 

     This .signature sanitized for your protection

--------------020507010400030704080706
Content-Type: text/plain;
 name="status-named.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="status-named.diff"

Index: 470.status-named
===================================================================
RCS file: /usr/local/ncvs/src/etc/periodic/daily/470.status-named,v
retrieving revision 1.8
diff -u -r1.8 470.status-named
--- 470.status-named	11 Jun 2006 20:39:12 -0000	1.8
+++ 470.status-named	30 Jan 2008 17:47:59 -0000
@@ -53,7 +53,12 @@
 			fi
 		done ) | \
 		tee /dev/stderr | wc -l)
-	[ $rc -gt 0 ] && rc=1
+	if [ -n "$rc" ]; then
+		[ $rc -gt 0 ] && rc=1
+	else
+		echo "Debug> OH NO! rc empty in $0"
+		rc=1
+	fi
 	;;
 
     *)  rc=0;;

--------------020507010400030704080706--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A0B932.7070308>