we didn't catch a zero option at the global level when views are active

This commit is contained in:
Mark Andrews
2012-08-17 13:40:56 +10:00
parent 20ca18c234
commit 8ff87f025f
2 changed files with 18 additions and 6 deletions

View File

@@ -75,6 +75,15 @@ EOF
$CHECKCONF badzero.conf > /dev/null 2>&1
[ $? -eq 1 ] || { echo "I: view $field failed" ; ret=1; }
cat > badzero.conf << EOF
options {
$field 0;
};
view dummy {
};
EOF
$CHECKCONF badzero.conf > /dev/null 2>&1
[ $? -eq 1 ] || { echo "I: options + view $field failed" ; ret=1; }
cat > badzero.conf << EOF
zone dummy {
type slave;
masters { 0.0.0.0; };