svn commit: r335029 - head/usr.sbin/service

Warner Losh imp at FreeBSD.org
Wed Jun 13 06:11:05 UTC 2018


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
 


More information about the svn-src-all mailing list