Date: Wed, 13 Jun 2018 06:11:04 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335029 - head/usr.sbin/service Message-ID: <201806130611.w5D6B4wd007861@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Wed Jun 13 06:11:04 2018 New Revision: 335029 URL: https://svnweb.freebsd.org/changeset/base/335029 Log: 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 Modified: head/usr.sbin/service/service.sh Modified: head/usr.sbin/service/service.sh ============================================================================== --- head/usr.sbin/service/service.sh Wed Jun 13 04:23:49 2018 (r335028) +++ head/usr.sbin/service/service.sh Wed Jun 13 06:11:04 2018 (r335029) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806130611.w5D6B4wd007861>