From nobody@FreeBSD.org  Mon Jun 28 18:10:53 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5595F16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Jun 2004 18:10:53 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4FFF943D49
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Jun 2004 18:10:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i5SIArCd043197
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Jun 2004 18:10:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i5SIArgJ043196;
	Mon, 28 Jun 2004 18:10:53 GMT
	(envelope-from nobody)
Message-Id: <200406281810.i5SIArgJ043196@www.freebsd.org>
Date: Mon, 28 Jun 2004 18:10:53 GMT
From: Michel Lavondes <fox@vader.aacc.cc.md.us>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] rc.subr.8
X-Send-Pr-Version: www-2.3

>Number:         68453
>Category:       docs
>Synopsis:       [patch] rc.subr.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 28 18:20:13 GMT 2004
>Closed-Date:    Sun Feb 26 16:12:53 GMT 2006
>Last-Modified:  Sun Feb 26 16:12:53 GMT 2006
>Originator:     Michel Lavondes
>Release:        FreeBSD 4.8-RELEASE-p22
>Organization:
Ecdysiasts United For Overdressing
>Environment:
>Description:
${name}_program in a startup script using rc.subr will silently override $command. This patch assumes the behavior is intended and documents it.

This is known to happen using the sysutils/rc_subr port on 4.x, but probably happens on 5.x with rcNG too.
>How-To-Repeat:
man 8 rc.subr
>Fix:
--- src/share/man/man8/rc.subr.8.orig	Mon Jun 21 09:02:57 2004
+++ src/share/man/man8/rc.subr.8	Mon Jun 21 09:26:36 2004
@@ -436,6 +436,10 @@
 Not required if
 .Ar argument Ns Sy _cmd
 is defined for each supported keyword.
+Note that if
+.Sy ${name}_program
+is set, it will silently override
+.Sy command .
 .It Sy command_args
 Optional arguments and/or shell directives for
 .Sy command .
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->freebsd-rc 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Wed Feb 22 02:20:05 UTC 2006 
Responsible-Changed-Why:  

Bring to the attention of the list 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68453 
Responsible-Changed-From-To: freebsd-rc->patched 
Responsible-Changed-By: yar 
Responsible-Changed-When: Wed Feb 22 10:59:23 UTC 2006 
Responsible-Changed-Why:  
Fixed in HEAD, MFC is due. Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68453 
State-Changed-From-To: open->patched 
State-Changed-By: yar 
State-Changed-When: Wed Feb 22 11:00:01 UTC 2006 
State-Changed-Why:  
Fixed in HEAD, MFC is due. Thanks. 


Responsible-Changed-From-To: patched->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Wed Feb 22 11:00:01 UTC 2006 
Responsible-Changed-Why:  
Taking this PR because I fiddled with the relation between 
$command and $foo_program in rc.subr. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68453 
State-Changed-From-To: patched->closed 
State-Changed-By: yar 
State-Changed-When: Sun Feb 26 16:12:17 UTC 2006 
State-Changed-Why:  
Mergen to RELENG_6, too.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68453 
>Unformatted:
