Bug in 470.status-named?
Doug Barton
dougb at FreeBSD.org
Wed Jan 30 10:18:29 PST 2008
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
-------------- next part --------------
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;;
More information about the freebsd-rc
mailing list