summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2015-07-16 22:03:03 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2015-07-16 22:03:03 +0000
commitd1e61b5148c9cd25b0a06f4d7ac9b8a7737a6e66 (patch)
tree5768fdaa5ea7affeda16bf3ff0fa82bd33e8a625 /usr.sbin
parent8a7366f19b756cf7e4d554fb5d7cc4c62b97228e (diff)
No daemon_class for special services.
Diffstat (limited to 'usr.sbin')
-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