summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2016-06-17 11:24:59 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2016-06-17 11:24:59 +0000
commitc68d142f4f6a0603cc53f6d999dbe613902c112e (patch)
treedf9b1d5c26fac10393ca282da081d4e1d4813a31
parent9c59fa24c1fa5da93a1594c4b48f7520fda61dd8 (diff)
No need to hardcode return code.
-rw-r--r--usr.sbin/rcctl/rcctl.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh
index 9e2b17b6005..a3c26d612ca 100644
--- a/usr.sbin/rcctl/rcctl.sh
+++ b/usr.sbin/rcctl/rcctl.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: rcctl.sh,v 1.95 2016/04/26 18:39:29 ajacoutot Exp $
+# $OpenBSD: rcctl.sh,v 1.96 2016/06/17 11:24:58 ajacoutot Exp $
#
# Copyright (c) 2014, 2015 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -141,7 +141,7 @@ svc_is_avail()
local _svc=$1
[ -n "${_svc}" ] || return
- [ -x "/etc/rc.d/${_svc}" ] && return 0
+ [ -x "/etc/rc.d/${_svc}" ] && return
svc_is_special ${_svc}
}