Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2001 10:19:37 -0800 (PST)
From:      David Wolfskill <david@catwhisker.org>
To:        current@FreeBSD.ORG, julian@elischer.org
Cc:        obrien@FreeBSD.ORG
Subject:   Re: latest -current broke netscape's name lookup?
Message-ID:  <200111021819.fA2IJbj52538@bunrab.catwhisker.org>
In-Reply-To: <Pine.BSF.4.21.0111020942280.46590-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Fri, 2 Nov 2001 09:42:58 -0800 (PST)
>From: Julian Elischer <julian@elischer.org>

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111021819.fA2IJbj52538>