Browse Source

Since we now use pkill -0 for "check", it must be run as root,

so remove that test condition. Commented by schwarze@, OK ajacoutot@
OPENBSD_5_0
ian 13 years ago
parent
commit
cb8b6fd3fc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc.d/rc.subr

+ 2
- 2
src/etc/rc.d/rc.subr View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.subr,v 1.27 2011/03/17 16:43:51 robert Exp $
# $OpenBSD: rc.subr,v 1.28 2011/03/19 19:03:57 ian Exp $
# Default functions and variables used by rc.d(8) scripts.
@ -48,7 +48,7 @@ rc_wait() {
}
rc_cmd() {
[ $(id -u) -eq 0 -o X"$1" = "Xcheck" ] || \
[ $(id -u) -eq 0 ] || \
rc_err "$0: need root privileges"
eval _enotsup=\${rc_${1}}


Loading…
Cancel
Save