From: kn Date: Mon, 24 Apr 2023 14:31:15 +0000 (+0000) Subject: "ls rogue" needs root; OK aja X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3348f56ded3d00f9b844da0d49ddf4fca1231fef;p=openbsd "ls rogue" needs root; OK aja --- 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 # Copyright (c) 2014 Ingo Schwarze @@ -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)