diff --git a/etc/rc.d/named b/etc/rc.d/named index 85a0f00d3c6..346b6fc9dd4 100755 --- a/etc/rc.d/named +++ b/etc/rc.d/named @@ -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