From eeea26ea4c07614d0eab0a297b1ce0ca65d2a032 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Thu, 28 Aug 2014 14:51:17 +0000 Subject: Drop check and tweak comment. with schwarze@ --- usr.sbin/rcctl/rcctl.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index 8112972b0b3..c218d7b3136 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.31 2014/08/28 07:53:07 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.32 2014/08/28 14:51:16 ajacoutot Exp $ # # Copyright (c) 2014 Antoine Jacoutot # @@ -68,13 +68,12 @@ svc_default_enabled() return ${_ret} } -# For security reasons, only call this if the service is enabled. -# To avoid namespace pollution, only call it in a subshell. +# for security reason and to prevent namespace pollution, only call in a +# subshell against base system daemons or disabled package scripts svc_default_enabled_flags() { local _svc=$1 [ -n "${_svc}" ] || return - svc_is_special ${_svc} && return FUNCS_ONLY=1 rc_cmd() { } -- cgit v1.2.3