diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2023-04-24 14:31:16 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2023-04-24 14:31:16 +0000 |
commit | 25b81585e8c02693d69d30a0ed0c47ebc0dad954 (patch) | |
tree | 961e5c846c207824a63d9a77b93c21ea16bb4bbc | |
parent | b450ad219b00df67229b1e3e2f487f5505fd4f22 (diff) |
"ls rogue" needs root; OK aja
-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 ffebb1e53b5..fb87943ba00 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: rcctl.sh,v 1.115 2022/12/22 19:53:24 kn Exp $ +# $OpenBSD: rcctl.sh,v 1.116 2023/04/24 14:31:15 kn Exp $ # # Copyright (c) 2014, 2015-2022 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -617,7 +617,7 @@ case ${action} in ;; ls) # some rc.d(8) scripts need root for rc_check() - [[ ${lsarg} == @(started|stopped|failed) ]] && needs_root ${action} ${lsarg} + [[ ${lsarg} == @(started|stopped|failed|rogue) ]] && needs_root ${action} ${lsarg} svc_ls ${lsarg} ;; order) |