Protect the command flags set in the rc.conf files in case they're

more than one word, adding some quotes.

Advice from:	mtm (my first attempt wasn't quite right)
Reviewed by:	mtm
MFC after:	3 days
This commit is contained in:
kensmith 2004-08-29 15:02:43 +00:00
parent 3bedfb04b2
commit 0da56f8f1e

View File

@ -19,5 +19,5 @@ name="routed"
load_rc_config $name
rcvar="router_enable"
command="${router:-/sbin/${name}}"
eval ${name}_flags=${router_flags}
eval ${name}_flags=\"${router_flags}\"
run_rc_command "$1"