2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 10:10:06 +00:00

use -r rather then -f

This commit is contained in:
Mark Andrews 2013-09-09 12:19:30 +10:00
parent 23c73a1848
commit 3d3aa9cde6
2 changed files with 3 additions and 2 deletions

View File

@ -109,7 +109,7 @@ then
sh ../../ecdsa/prereq.sh 2> /dev/null || continue
fi
test $alg = DSA -a ! -f /dev/random -a ! -f /dev/urandom && continue
test $alg = DSA -a ! -r /dev/random -a ! -r /dev/urandom && continue
k1=`$KEYGEN -q -r $RANDFILE -a $alg -b 1024 -n zone -f KSK $zone`
k2=`$KEYGEN -q -r $RANDFILE -a $alg -b 1024 -n zone $zone`

View File

@ -823,7 +823,8 @@ do
then
sh ../ecdsa/prereq.sh 2>/dev/null || continue;
fi
test $alg = 3 -a ! -f /dev/random -a ! -f /dev/random && continue
test $alg = 3 -a ! -r /dev/random -a ! -r /dev/urandom && continue
echo "I: checking $alg"
dnskeys=`grep "IN.DNSKEY.25[67] [0-9]* $alg " dig.out.ns3.test$n | wc -l`
rrsigs=`grep "RRSIG.DNSKEY $alg " dig.out.ns3.test$n | wc -l`