svn commit: r199029 - stable/8/etc

Doug Barton dougb at FreeBSD.org
Sat Nov 7 22:59:04 UTC 2009


Author: dougb
Date: Sat Nov  7 22:59:04 2009
New Revision: 199029
URL: http://svn.freebsd.org/changeset/base/199029

Log:
  MFC r198162:
  
  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:
  stable/8/etc/rc.subr
Directory Properties:
  stable/8/etc/   (props changed)

Modified: stable/8/etc/rc.subr
==============================================================================
--- stable/8/etc/rc.subr	Sat Nov  7 22:47:12 2009	(r199028)
+++ stable/8/etc/rc.subr	Sat Nov  7 22:59:04 2009	(r199029)
@@ -588,7 +588,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-stable-8 mailing list