1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

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:
Ken Smith 2004-08-29 15:02:43 +00:00
parent 45d5e85a40
commit 11980247d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134487

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"