diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1998-06-20 01:49:04 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1998-06-20 01:49:04 +0000 |
commit | 16aa743d884d4da37199a0ee7fbc4b601a4cfc02 (patch) | |
tree | e316b255514210dfd9fcb00425b2ad6636f46694 /usr.sbin | |
parent | 193f349beb66d44916f3182d76d39ebd998ee4d0 (diff) |
Handle case where rc.conf exists but has no named_chroot.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/named/ndc/ndc.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/named/ndc/ndc.sh b/usr.sbin/named/ndc/ndc.sh index 7d736677f0f..4fcea9296a8 100644 --- a/usr.sbin/named/ndc/ndc.sh +++ b/usr.sbin/named/ndc/ndc.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: ndc.sh,v 1.9 1998/06/03 17:15:59 millert Exp $ +# $OpenBSD: ndc.sh,v 1.10 1998/06/20 01:49:03 downsj Exp $ USAGE='echo \ "usage: $0 \ @@ -11,6 +11,10 @@ PATH=%DESTSBIN%:/bin:/usr/bin:/usr/ucb:$PATH if [ -r /etc/rc.conf ]; then CHROOTDIR=`. /etc/rc.conf ; echo "$named_chroot"` + # In case rc.conf exists but does not specify $named_chroot. + if [ "X${CHROOTDIR}" == "X" ]; then + CHROOTDIR=/var/named + fi else CHROOTDIR=%CHROOTDIR% fi |