summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-06-22 14:46:42 +0000
committerderaadt <deraadt@openbsd.org>2001-06-22 14:46:42 +0000
commit408c7b166052d7c2dbc8cee94143f02f0582f122 (patch)
tree4133d554a4bd903b958aadc7f426bf6217beadc9
parentKNF (diff)
downloadwireguard-openbsd-408c7b166052d7c2dbc8cee94143f02f0582f122.tar.xz
wireguard-openbsd-408c7b166052d7c2dbc8cee94143f02f0582f122.zip
bail YP if no domainname; dima@unixfreak.org
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index d06fba3c418..d8163ddc17b 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.173 2001/06/12 06:36:03 fgsch Exp $
+# $OpenBSD: rc,v 1.174 2001/06/22 14:46:42 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -206,7 +206,7 @@ if [ X"${portmap}" = X"YES" ]; then
echo -n ' portmap'; portmap
fi
-if [ -d /var/yp/binding ]; then
+if [ -d /var/yp/binding -a X`domainname` != X ]; then
if [ -d /var/yp/`domainname` ]; then
# yp server capabilities needed...
echo -n ' ypserv'; ypserv ${ypserv_flags}