s/named_confidr/named_confdir/ in the rndc.key check. The line in

the command to create it was right, but the check was wrong, so it
was getting created every time. Mea culpa.

Submitted by:	oliver
This commit is contained in:
Doug Barton 2010-01-01 22:10:07 +00:00
parent 93d8be03d9
commit 1323e3dbec

View File

@ -183,8 +183,8 @@ named_prestart()
if [ -s "${named_confdir}/rndc.conf" ]; then
unset confgen_command
fi
if [ -s "${named_confidr}/rndc.key" ]; then
case `stat -f%Su ${named_confidr}/rndc.key` in
if [ -s "${named_confdir}/rndc.key" ]; then
case `stat -f%Su ${named_confdir}/rndc.key` in
root|$named_uid) ;;
*) $confgen_command ;;
esac