Subject: Re: bin/20786
To: None <lukem@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: netbsd-bugs
Date: 01/24/2005 09:40:01
The following reply was made to PR bin/20786; it has been noted by GNATS.

From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
To: gnats-bugs@netbsd.org
Cc: lukem@netbsd.org
Subject: Re: bin/20786
Date: Mon, 24 Jan 2005 10:39:41 +0100

 > Synopsis: check for rcvar in /etc/rc.d/* scripts can fail when it shouldn't
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: lukem
 > State-Changed-When: Tue Oct 12 14:51:38 UTC 2004
 > State-Changed-Why: 
 > This should be fixed in -current
 
 Yes, it works in 2.0 after applying the following changesets:
 
 ---------------------
 PatchSet 3854 
 Date: 2004/10/12 15:45:29
 Author: lukem
 Branch: HEAD
 Tag: (none) 
 Log:
 * Implement
         load_rc_config_var cmd var
   to load the rc.conf(5) configuration for cmd and set var in the
   current shell, using 'load_rc_config var' in a sub-shell to avoid
   unwanted side-effects.
 
 * Improve required_vars warning message.
 
 Members: 
         rc.subr:1.64->1.65 
 
 ---------------------
 PatchSet 3855 
 Date: 2004/10/12 15:51:03
 Author: lukem
 Branch: HEAD
 Tag: (none) 
 Log:
 Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5)
 variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf.
 Fixes PR 20768 from Pavel Cahyna.
 
 Members: 
         rc.d/amd:1.12->1.13 
         rc.d/ipnat:1.12->1.13 
         rc.d/network:1.46->1.47 
         rc.d/nfsd:1.6->1.7 
         rc.d/nfslocking:1.7->1.8 
         rc.d/routed:1.8->1.9 
         rc.d/smmsp:1.3->1.4 
         rc.d/yppasswdd:1.9->1.10 
         rc.d/ypserv:1.7->1.8 
 
 Thanks!