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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"