diff options
author | dougb <dougb@FreeBSD.org> | 2010-01-01 22:10:07 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2010-01-01 22:10:07 +0000 |
commit | 1081f85f8875db9dd0ef9cc96246968a3cffa424 (patch) | |
tree | e616409ddd2a9bac349420361d41665136e5d378 /etc/rc.d | |
parent | bbbada417d6359e6c45f74c78cd2336bc22e9f31 (diff) | |
download | FreeBSD-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-x | etc/rc.d/named | 4 |
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 |