Browse Source

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@
OPENBSD_5_3
ajacoutot 12 years ago
parent
commit
8b3e1998a5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/etc/rc.d/rc.subr

+ 2
- 1
src/etc/rc.d/rc.subr View File

@ -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 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@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## } daemon_flags=${daemon_flags## }
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}" pexp="${daemon}${daemon_flags:+ ${daemon_flags}}"
rcexec="su -l -c ${daemon_class} -s /bin/sh ${daemon_user} -c" rcexec="su -l -c ${daemon_class} -s /bin/sh ${daemon_user} -c"
readonly daemon_class

Loading…
Cancel
Save