From: kn Date: Mon, 23 Sep 2024 20:44:24 +0000 (+0000) Subject: zap redundant "|| return 1"; OK lucas X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2dcab2a61d4c1ba4c2614f49c361fb01d01fb125;p=openbsd zap redundant "|| return 1"; OK lucas unbound-checkconf(8) itself exits 1 on error already. --- diff --git a/etc/rc.d/unbound b/etc/rc.d/unbound index 0f19c90fdf1..4429c0bbe12 100644 --- a/etc/rc.d/unbound +++ b/etc/rc.d/unbound @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: unbound,v 1.7 2022/05/21 10:10:45 ajacoutot Exp $ +# $OpenBSD: unbound,v 1.8 2024/09/23 20:44:24 kn Exp $ daemon="/usr/sbin/unbound" daemon_flags="-c /var/unbound/etc/unbound.conf" @@ -12,7 +12,8 @@ rc_pre() { /var/unbound/etc/unbound.conf > /dev/null 2>&1; then /usr/sbin/unbound-anchor -v fi - /usr/sbin/unbound-checkconf || return 1 + + /usr/sbin/unbound-checkconf } rc_cmd $1