4031. [bug] named-checkconf -z failed to report a missing file

with a hint zone. [RT #38294]
This commit is contained in:
Mark Andrews
2015-01-08 19:19:12 +11:00
parent 4069b09224
commit d1f1f13c7f
4 changed files with 18 additions and 16 deletions

View File

@@ -53,7 +53,8 @@ done
echo "I: checking that named-checkconf -z catches missing hint file"
ret=0
$CHECKCONF -z hint-nofile.conf > /dev/null 2>&1 && ret=1
$CHECKCONF -z hint-nofile.conf > hint-nofile.out 2>&1 && ret=1
grep "could not configure root hints from 'nonexistent.db': file not found" hint-nofile.out > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`