svn commit: r198162 - head/etc

Doug Barton dougb at FreeBSD.org
Thu Oct 15 23:20:24 UTC 2009


Author: dougb
Date: Thu Oct 15 23:20:23 2009
New Revision: 198162
URL: http://svn.freebsd.org/changeset/base/198162

Log:
  Allow $name_program to override $command in a more robust way that
  will not cause the value to be null if $command is not set.

Modified:
  head/etc/rc.subr

Modified: head/etc/rc.subr
==============================================================================
--- head/etc/rc.subr	Thu Oct 15 21:20:12 2009	(r198161)
+++ head/etc/rc.subr	Thu Oct 15 23:20:23 2009	(r198162)
@@ -616,7 +616,7 @@ run_rc_command()
 	esac
 
 	eval _override_command=\$${name}_program
-	command=${command:+${_override_command:-$command}}
+	command=${_override_command:-$command}
 
 	_keywords="start stop restart rcvar $extra_commands"
 	rc_pid=


More information about the svn-src-head mailing list