Browse Source

Sanitise daemon_flags: remove multiple whitespaces from _rcflags.

requested by okan@, ok robert@
OPENBSD_4_9
ajacoutot 14 years ago
parent
commit
0ac91ffd59
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.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}


Loading…
Cancel
Save