From owner-freebsd-rc@FreeBSD.ORG Wed Jan 30 18:18:29 2008 Return-Path: Delivered-To: rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78ABA16A417 for ; Wed, 30 Jan 2008 18:18:29 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id 1545713C4CE for ; Wed, 30 Jan 2008 18:18:28 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 25598 invoked by uid 399); 30 Jan 2008 17:51:47 -0000 Received: from localhost (HELO ?192.168.0.4?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 30 Jan 2008 17:51:47 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <47A0B932.7070308@FreeBSD.org> Date: Wed, 30 Jan 2008 09:51:46 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <86r6fzzdzb.fsf@ds4.des.no> In-Reply-To: <86r6fzzdzb.fsf@ds4.des.no> X-Enigmail-Version: 0.95.6 Content-Type: multipart/mixed; boundary="------------020507010400030704080706" Cc: rc@freebsd.org Subject: Re: Bug in 470.status-named? X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 18:18:29 -0000 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--