From e69c136ec7a6f21ec93aa471e773a8fab5608d5f Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sun, 4 Sep 2022 06:57:13 +0000 Subject: [PATCH] Fix regression in previous commit. Moving the configuration check to its own configtest function means rc_pre exit code will now be that of the && list (sasyncd_flags). Just do what isakmpd does and return 0. from lucas at sexy dot is, thanks! --- etc/rc.d/iked | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/iked b/etc/rc.d/iked index 8cfb786e6a8..44861ace985 100644 --- a/etc/rc.d/iked +++ b/etc/rc.d/iked @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: iked,v 1.9 2022/08/29 19:14:25 ajacoutot Exp $ +# $OpenBSD: iked,v 1.10 2022/09/04 06:57:13 ajacoutot Exp $ daemon="/sbin/iked" @@ -15,6 +15,7 @@ rc_configtest() { rc_pre() { [[ ${sasyncd_flags} != NO ]] && daemon_flags="-S ${daemon_flags}" + return 0 } rc_cmd $1 -- 2.20.1