4032. [bug] Built-in "empty" zones did not correctly inherit the

"allow-transfer" ACL from the options or view.
                        [RT #38310]
This commit is contained in:
Mark Andrews
2015-01-10 22:01:42 +11:00
parent e5073ab47c
commit 7952156995
6 changed files with 30 additions and 3 deletions

View File

@@ -32,4 +32,12 @@ $DIG +vc version.bind txt ch @10.53.0.1 -p 5300 > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:check that allow-transfer { none; } works ($n)"
ret=0
$DIG axfr 10.in-addr.arpa @10.53.0.1 -p 5300 +all > dig.out.test$n || ret=1
grep "status: REFUSED" dig.out.test$n > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
exit $status