| Summary: | minor timebomb in /etc/rc | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Bourne-again Superuser <toor> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.4-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
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 As matusita explained, the location of ldconfig is not what's being parameterized. |
/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. :)