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

Reply via email to