Browse Source

Stop supporting the historical way of starting ypbind(8); that is setting

'ypbind_flags=""' when domainname is set and /var/yp/binding exists.
This can lead to inconsistent behavior at startup since /var may not be
mounted yet and /etc/rc's start_daemon() will not start ypbind.
A.K.A. make ypbind startup consistent with all other OpenBSD daemons.
ok deraadt@
OPENBSD_6_1
ajacoutot 7 years ago
parent
commit
5a04355915
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      src/etc/rc.d/rc.subr

+ 1
- 6
src/etc/rc.d/rc.subr View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.subr,v 1.117 2017/01/24 01:11:11 ajacoutot Exp $
# $OpenBSD: rc.subr,v 1.118 2017/02/17 16:42:41 ajacoutot Exp $
#
# Copyright (c) 2010, 2011, 2014-2016 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@ -115,11 +115,6 @@ _rc_quirks() {
[ X"${nfsd_flags}" = X"NO" ] && nfsd_flags="-tun 4"
[ X"${mountd_flags}" = X"NO" ] && mountd_flags=
fi
# in case domainname is set and /var/yp/binding exists enable ypbind
if [ X"`domainname`" != X"" -a -d /var/yp/binding ]; then
ypbind_flags=
fi
}
_rc_parse_conf() {


Loading…
Cancel
Save