summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2012-08-13 08:08:01 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2012-08-13 08:08:01 +0000
commit8954ae9620c387b3026cbfd0041f7ee2d4df5d13 (patch)
treebeae663e40e9b79231f2d73a2246d76024fa8811
parent9503323265986354b65af4954a4b1ca2cc8c9d4e (diff)
Set the daemon_class as readonly as it should be (and is documented as
such). from robert at peichaer dot org modified after a discussion with halex@ ok halex@ robert@
-rw-r--r--etc/rc.d/rc.subr3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr
index 0edcc4de989..b70bcefc8cb 100644
--- a/etc/rc.d/rc.subr
+++ b/etc/rc.d/rc.subr
@@ -1,4 +1,4 @@
-# $OpenBSD: rc.subr,v 1.60 2012/08/11 17:55:58 ajacoutot Exp $
+# $OpenBSD: rc.subr,v 1.61 2012/08/13 08:08:00 ajacoutot Exp $
#
# Copyright (c) 2010, 2011 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -207,3 +207,4 @@ daemon_flags=$(printf ' %s' ${daemon_flags})
daemon_flags=${daemon_flags## }
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}"
rcexec="su -l -c ${daemon_class} -s /bin/sh ${daemon_user} -c"
+readonly daemon_class