Bug 32079

Summary: minor timebomb in /etc/rc
Product: Base System Reporter: Bourne-again Superuser <toor>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description Bourne-again Superuser 2001-11-18 17:00:01 UTC
	/etc/rc has a minor programming error.

Fix: 

It's not broken, at least not until someone tries to take advantage
	of the /sbin/ldconfig parameterization. However, for that day, change:

if [ -x /sbin/ldconfig ]; then

	to

if [ -x ${ldconfig} ]; then

	in /etc/rc.
How-To-Repeat: 	RTFS. :)
Comment 1 Makoto Matsushita 2001-11-18 17:36:49 UTC
toor> if [ -x ${ldconfig} ]; then

You can't do that, since if you set ldconfig_insecure=YES, ${ldconfig}
will be '/sbin/ldconfig -i' and test(1) will fail.

toor> 	It's not broken, at least not until someone tries to take advantage
toor> 	of the /sbin/ldconfig parameterization.

The location of ldconfig is not parameterized.  It's still sticked to
'/sbin/ldconfig' in /etc/rc, and you cannot change in /etc/rc.conf.
Discover the reason of why 'ldconfig' variable is in /etc/rc with the
src/etc/rc commitlog of rev 1.224 and 1.212.2.12.

-- -
Makoto `MAR' Matsushita
Comment 2 dd freebsd_committer freebsd_triage 2002-03-09 08:34:07 UTC
State Changed
From-To: open->closed

As matusita explained, the location of ldconfig is not what's being 
parameterized.