summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2005-04-01 05:37:35 +0000
committerderaadt <deraadt@openbsd.org>2005-04-01 05:37:35 +0000
commit214f531ba49798b9489018d12e628bc46c214327 (patch)
treeda30dfffe6de666ebc3905639646bc7a2c4d0b8d
parentAdd a reasonably sane CA bundle to /etc/ssl/cert.pem, the default (diff)
downloadwireguard-openbsd-214f531ba49798b9489018d12e628bc46c214327.tar.xz
wireguard-openbsd-214f531ba49798b9489018d12e628bc46c214327.zip
OK, this is an insane commit. Comes from johnb@ugrad.cs.ualberta.ca, pr 3589.
somehow he got his YP and DNS screwed up and nslookup $h was dealing with h = "" which was doing nslookup "", which is bad and hangs boots. be more careful by doing echo $h | nslookup instead.
-rw-r--r--etc/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index e485b8b5710..d7318578e5f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.262 2005/03/22 22:24:38 henning Exp $
+# $OpenBSD: rc,v 1.263 2005/04/01 05:37:35 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -289,9 +289,9 @@ if [ -d /var/yp/binding -a X`domainname` != X ]; then
_host1=`ypmatch $_host1 hosts | cut -d' ' -f2`
_host2=`ypmatch $_host2 hosts | cut -d' ' -f2 | head -1`
else
- _host1=`nslookup $_host1 | grep '^Name: ' | \
+ _host1=`echo $_host1 | nslookup | grep '^Name: ' | \
sed -e 's/^Name: //'`
- _host2=`nslookup $_host2 | grep '^Name: ' | \
+ _host2=`echo $_host2 | nslookup | grep '^Name: ' | \
sed -e 's/^Name: //'`
fi
if [ "$_host2" = "$_host1" ]; then