diff options
author | 2012-08-13 08:08:00 +0000 | |
---|---|---|
committer | 2012-08-13 08:08:00 +0000 | |
commit | 3a4ce453be0549b5a3587e87e5ed17d2e3a0380f (patch) | |
tree | 1515f28a9336b39c94bcab0bdb321e5bfe206b4f | |
parent | get rid of the last foo_lo and foo_hi bits i could find in the hardware (diff) | |
download | wireguard-openbsd-3a4ce453be0549b5a3587e87e5ed17d2e3a0380f.tar.xz wireguard-openbsd-3a4ce453be0549b5a3587e87e5ed17d2e3a0380f.zip |
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.subr | 3 |
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 |