summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rcctl
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2015-07-16 22:03:02 +0000
committerajacoutot <ajacoutot@openbsd.org>2015-07-16 22:03:02 +0000
commit387e4e85c05bb06d60330c14383f896f91de71ce (patch)
treeab3f012071cc0fa948f883250978447be07bf20e /usr.sbin/rcctl
parentwrap long lines (diff)
downloadwireguard-openbsd-387e4e85c05bb06d60330c14383f896f91de71ce.tar.xz
wireguard-openbsd-387e4e85c05bb06d60330c14383f896f91de71ce.zip
No daemon_class for special services.
Diffstat (limited to 'usr.sbin/rcctl')
-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 b5d045406da..f5e13611ebe 100644
--- a/usr.sbin/rcctl/rcctl.sh
+++ b/usr.sbin/rcctl/rcctl.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: rcctl.sh,v 1.72 2015/07/16 21:52:16 ajacoutot Exp $
+# $OpenBSD: rcctl.sh,v 1.73 2015/07/16 22:03:02 ajacoutot Exp $
#
# Copyright (c) 2014, 2015 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -455,7 +455,7 @@ if [ -n "${var}" ]; then
rcctl_err "\"${svc}_class\" is a read-only variable set in login.conf(5)"
if svc_is_special ${svc}; then
if [[ ${action} == set && ${var} != status ]] || \
- [[ ${action} == @(get|getdef) && ${var} == @(timeout|user) ]]; then
+ [[ ${action} == @(get|getdef) && ${var} == @(class|timeout|user) ]]; then
rcctl_err "\"${svc}\" is a special variable, cannot \"${action} ${svc} ${var}\""
fi
fi