diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-08-28 14:51:17 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-08-28 14:51:17 +0000 |
commit | eeea26ea4c07614d0eab0a297b1ce0ca65d2a032 (patch) | |
tree | f2772396a274ea1253229d5043d614d3db9a2919 /usr.sbin | |
parent | a056df44fb3aa2746550522ad58825426312a3b4 (diff) |
Drop check and tweak comment.
with schwarze@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rcctl/rcctl.sh | 7 |
1 files changed, 3 insertions, 4 deletions
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 <ajacoutot@openbsd.org> # @@ -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() { } |