From root@twwells.com  Sun Nov 18 08:54:13 2001
Return-Path: <root@twwells.com>
Received: from mail.junkproof.net (mail.junkproof.net [206.55.70.12])
	by hub.freebsd.org (Postfix) with ESMTP id 70AA337B405
	for <freebsd-gnats-submit@freebsd.org>; Sun, 18 Nov 2001 08:54:13 -0800 (PST)
Received: from mail (helo=mail.junkproof.net)
	by mail.junkproof.net with local-bsmtp (Exim 3.32 #1)
	id 165VCj-0002o6-00
	for freebsd-gnats-submit@freebsd.org; Sun, 18 Nov 2001 10:54:01 -0600
Received: from server.twwells.com ( [206.55.70.10] )
	by mail.junkproof.net via tcp with esmtp
	id 3bf7e776-002a1b; Sun, 18 Nov 2001 16:53:10 +0000
Received: from root by server.twwells.com with local (Exim 3.33 #1)
	id 165VBt-0002no-00
	for FreeBSD-gnats-submit@freebsd.org; Sun, 18 Nov 2001 10:53:09 -0600
Message-Id: <E165VBt-0002no-00@server.twwells.com>
Date: Sun, 18 Nov 2001 10:53:09 -0600
From: Bourne-again Superuser <toor@twwells.com>
Reply-To: Bourne-again Superuser <toor@twwells.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: minor timebomb in /etc/rc
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32079
>Category:       bin
>Synopsis:       minor timebomb in /etc/rc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 18 09:00:01 PST 2001
>Closed-Date:    Sat Mar 9 00:34:07 PST 2002
>Last-Modified:  Sat Mar 09 00:34:27 PST 2002
>Originator:     Bourne-again Superuser
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD server.twwells.com 4.4-STABLE FreeBSD 4.4-STABLE #0: Fri Oct 12 02:24:59 CDT 2001 root@server.twwells.com:/usr/obj/usr/src/sys/SERVER_SMP i386

>Description:
	/etc/rc has a minor programming error.
>How-To-Repeat:
	RTFS. :)
>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.
>Release-Note:
>Audit-Trail:

From: Makoto Matsushita <matusita@jp.freebsd.org>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: bin/32079: minor timebomb in /etc/rc
Date: Mon, 19 Nov 2001 02:36:49 +0900

 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
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Sat Mar 9 00:34:07 PST 2002 
State-Changed-Why:  
As matusita explained, the location of ldconfig is not what's being 
parameterized. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32079 
>Unformatted:
