Use "$@" instead of $* to cope with parameters that have spaces in

them. "$@" preserves the args with spaces properly.

Differential Revision: https://reviews.freebsd.org/D15784
This commit is contained in:
Warner Losh 2018-06-13 06:11:04 +00:00
parent 483305b99c
commit 371ba7ec71
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335029

View file

@ -165,7 +165,7 @@ cd /
for dir in /etc/rc.d $local_startup; do
if [ -x "$dir/$script" ]; then
[ -n "$VERBOSE" ] && echo "$script is located in $dir"
exec env -i HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin $dir/$script $*
exec env -i HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin $dir/$script "$@"
fi
done