summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2010-01-01 22:10:07 +0000
committerdougb <dougb@FreeBSD.org>2010-01-01 22:10:07 +0000
commit1081f85f8875db9dd0ef9cc96246968a3cffa424 (patch)
treee616409ddd2a9bac349420361d41665136e5d378 /etc/rc.d
parentbbbada417d6359e6c45f74c78cd2336bc22e9f31 (diff)
downloadFreeBSD-src-1081f85f8875db9dd0ef9cc96246968a3cffa424.zip
FreeBSD-src-1081f85f8875db9dd0ef9cc96246968a3cffa424.tar.gz
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
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/named4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/named b/etc/rc.d/named
index 85a0f00..346b6fc 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
OpenPOWER on IntegriCloud