diff options
author | 2014-08-24 08:13:15 +0000 | |
---|---|---|
committer | 2014-08-24 08:13:15 +0000 | |
commit | e8d3163586213d19fa9d78bf587a7373c187bda7 (patch) | |
tree | 9e5f322885324a131d90b3fcbf36c49d4a445d7a | |
parent | In debug mode (`-d'), only print the flags relevant to the rc.d(8) we are (diff) | |
download | wireguard-openbsd-e8d3163586213d19fa9d78bf587a7373c187bda7.tar.xz wireguard-openbsd-e8d3163586213d19fa9d78bf587a7373c187bda7.zip |
Fix args to needs_root() when using "disable" (broken in the v1.9
positional args cleanup commit).
from Sebastien Marie
-rw-r--r-- | usr.sbin/rcctl/rcctl.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index 82637810ae0..4e4b01c1f3a 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.13 2014/08/24 07:46:54 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.14 2014/08/24 08:13:15 ajacoutot Exp $ # # Copyright (c) 2014 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -313,7 +313,7 @@ if [ $# -gt 0 ]; then fi case $action in disable) - needs_root $svc + needs_root $action if ! svc_is_base $svc && ! svc_is_special $svc; then rm_from_pkg_scripts $svc fi |