From 1323e3dbecea6d7f21a923795df0bebedd080ea3 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Fri, 1 Jan 2010 22:10:07 +0000 Subject: [PATCH] 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 --- etc/rc.d/named | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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