From owner-freebsd-current Fri Nov 2 10:19:46 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id A000A37B403; Fri, 2 Nov 2001 10:19:39 -0800 (PST) Received: (from david@localhost) by bunrab.catwhisker.org (8.11.6/8.11.6) id fA2IJbj52538; Fri, 2 Nov 2001 10:19:37 -0800 (PST) (envelope-from david) Date: Fri, 2 Nov 2001 10:19:37 -0800 (PST) From: David Wolfskill Message-Id: <200111021819.fA2IJbj52538@bunrab.catwhisker.org> To: current@FreeBSD.ORG, julian@elischer.org Subject: Re: latest -current broke netscape's name lookup? Cc: obrien@FreeBSD.ORG In-Reply-To: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Date: Fri, 2 Nov 2001 09:42:58 -0800 (PST) >From: Julian Elischer >Answer found.. >mergemaster installed a blank host.conf Try this instead: --- /usr/src/etc/rc.network Fri Nov 2 05:53:43 2001 +++ rc.network Fri Nov 2 10:07:20 2001 @@ -859,7 +859,7 @@ host_conf=$1; shift; nsswitch_conf=$1; shift; awk ' \ - /^[:blank:]*#/ { next } \ + /^[ ]*#/ { next } \ /(hosts|local|file)/ { nsswitch[c] = "files"; c++; next } \ /(dns|bind)/ { nsswitch[c] = "dns"; c++; next } \ /nis/ { nsswitch[c] = "nis"; c++; next } \ @@ -887,9 +887,6 @@ if ($n in xlat) print xlat[$n]; quit; -} -// { - next; } ' <$nsswitch_conf >$host_conf } [Yes, it's more of the awk stuff. I did a search through all of -CURRENT's /usr/src (as of this morning), looking for \[:[a-z][a-z]*:\] and outside of the code for programs that would actually be expected to manipulate such constructs (such as contrib/perl), I found a couple in sys/boot/common/merge_help.awk; the others were sed expressions. Of course, one of the other interesting issues with the above patch is that awk was whining about the empty regex ("//"). Since the idea was apparently to do nothing for such a record, it seemed simpler to just not tell awk to do anything with it, and that seemed to work in my tests.] Cheers, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message