diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 7819c03c..128559c6 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.10 2010/12/11 09:55:37 robert Exp $ +# $OpenBSD: rc.subr,v 1.11 2010/12/11 10:15:23 ajacoutot Exp $ [ -z "${local_rcconf}" ] && . /etc/rc.conf @@ -38,6 +38,7 @@ rc_cmd() { rc_err "$0: need root privileges" [ -n "${daemon}" ] || rc_err "$0: daemon is not set" [ -n "${_rcflags}" ] && daemon_flags=${_rcflags} + [ -n "${_rcflags}" ] && daemon_flags=`echo ${_rcflags} | tr -s "[:space:]"` [ -n "${_rcuser}" ] && daemon_user=${_rcuser} [ -n "${_rcclass}" ] && daemon_class=${_rcclass} [ -n "${_rcshell}" ] && daemon_shell=${_rcshell}