From 8b3e1998a55fe2f5d90800aa801058e1d05feae0 Mon Sep 17 00:00:00 2001 From: ajacoutot <> Date: Mon, 13 Aug 2012 08:08:00 +0000 Subject: [PATCH] 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@ --- src/etc/rc.d/rc.subr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 0edcc4de..b70bcefc 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/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 # Copyright (c) 2010, 2011 Ingo Schwarze @@ -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