summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2003-06-30 15:02:05 +0000
committertrhodes <trhodes@FreeBSD.org>2003-06-30 15:02:05 +0000
commitc4ce25275ca8b5cae088594890edd4ef17c28763 (patch)
treeafc2820f8751aaf9352d4d1dc0befaa8701662d0 /etc
parentcca07433cc4346d74e15b2628370096afdaf82b9 (diff)
downloadFreeBSD-src-c4ce25275ca8b5cae088594890edd4ef17c28763.zip
FreeBSD-src-c4ce25275ca8b5cae088594890edd4ef17c28763.tar.gz
Properly use ld.so.conf and ld-elf.so.conf as discussed in the manual page.
PR: 25527 Submitted by: Alexey Neyman <alex.neyman@auriga.ru> Reviewed by: jdp
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/ldconfig8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/ldconfig b/etc/rc.d/ldconfig
index 37e600d..9aa7a64 100755
--- a/etc/rc.d/ldconfig
+++ b/etc/rc.d/ldconfig
@@ -25,8 +25,8 @@ ldconfig_start()
checkyesno ldconfig_insecure && _ins="-i"
if [ -x "${ldconfig_command}" ]; then
_LDC=/usr/lib
- for i in ${ldconfig_paths}; do
- if [ -d "${i}" ]; then
+ for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do
+ if [ -r "${i}" ]; then
_LDC="${_LDC} ${i}"
fi
done
@@ -39,8 +39,8 @@ ldconfig_start()
# Default the a.out ldconfig path.
: ${ldconfig_paths_aout=${ldconfig_paths}}
_LDC=/usr/lib/aout
- for i in ${ldconfig_paths_aout}; do
- if [ -d "${i}" ]; then
+ for i in ${ldconfig_paths_aout} /etc/ld.so.conf; do
+ if [ -r "${i}" ]; then
_LDC="${_LDC} ${i}"
fi
done
OpenPOWER on IntegriCloud