From 5a04355915f7e387c53977af1521c6c5c8995292 Mon Sep 17 00:00:00 2001 From: ajacoutot <> Date: Fri, 17 Feb 2017 16:42:41 +0000 Subject: [PATCH] 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@ --- src/etc/rc.d/rc.subr | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 33ca0687..12544734 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/etc/rc.d/rc.subr @@ -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 # Copyright (c) 2010, 2011 Ingo Schwarze @@ -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() {