From owner-freebsd-bugs Sun Jun 8 07:30:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA14431 for bugs-outgoing; Sun, 8 Jun 1997 07:30:06 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA14425; Sun, 8 Jun 1997 07:30:04 -0700 (PDT) Resent-Date: Sun, 8 Jun 1997 07:30:04 -0700 (PDT) Resent-Message-Id: <199706081430.HAA14425@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, ivt@crocus.gamma.ru Received: from crocus.gamma.ru (crocus.gamma.ru [193.124.255.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA14337 for ; Sun, 8 Jun 1997 07:27:27 -0700 (PDT) Received: (from ivt@localhost) by crocus.gamma.ru (8.8.5/8.7.3) id SAA05800; Sun, 8 Jun 1997 18:27:08 +0400 (MSD) Message-Id: <199706081427.SAA05800@crocus.gamma.ru> Date: Sun, 8 Jun 1997 18:27:08 +0400 (MSD) From: Igor Timkin Reply-To: ivt@crocus.gamma.ru To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/3811: ndc's bug Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 3811 >Category: bin >Synopsis: ndc's bug >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 8 07:30:01 PDT 1997 >Last-Modified: >Originator: Igor Timkin >Organization: Gamma Ltd., Moscow, Russia >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: 2.2.2-RELEASE, bind-4.9.4 >Description: ndc (from named distibute) use /etc/sysconfig instead of /etc/rc.conf >How-To-Repeat: named.restart: Jun 8 17:56:36 crocus named[5158]: /etc/named.boot: No such file or directory >Fix: *** /usr/src/usr.sbin/ndc/ndcedit.awk.old Tue Nov 12 12:11:33 1996 --- /usr/src/usr.sbin/ndc/ndcedit.awk Sun Jun 8 18:11:37 1997 *************** *** 7,21 **** print "" print "# If there is a global system configuration file, suck it in." ! print "if [ -f /etc/sysconfig ]; then" ! print "\t. /etc/sysconfig" print "fi\n" } { if ($1 == "named") { ! printf "\t\t# $namedflags is imported from /etc/sysconfig\n" ! printf "\t\tif [ \"X${namedflags}\" != \"XNO\" ]; then\n" ! printf "\t\t\tnamed ${namedflags} && {\n" getline printf "\t%s\n", $0 getline --- 7,21 ---- print "" print "# If there is a global system configuration file, suck it in." ! print "if [ -f /etc/rc.conf ]; then" ! print "\t. /etc/rc.conf" print "fi\n" } { if ($1 == "named") { ! printf "\t\t# $named_enable and $named_flags are imported from /etc/sysconfig\n" ! printf "\t\tif [ \"X${named_enable}\" != \"XNO\" ]; then\n" ! printf "\t\t\tnamed ${named_flags} && {\n" getline printf "\t%s\n", $0 getline >Audit-Trail: >Unformatted: