Skip to content

Commit

Permalink
ldconfig: Restore handling for /etc/ld-elf.so.conf
Browse files Browse the repository at this point in the history
The original change to factor out the ldconfig_paths helper function
accidentally dropped it due to a variable name mismatch (_ldconf vs
_soconf).  As a result, the 4th argument looked unused so I removed
it.  Rather than re-adding the 4th argument to the helper, just
include /etc/ld-elf.so.conf in the list of paths used in the second
for loop.
  • Loading branch information
bsdjhb committed Apr 15, 2024
1 parent de675c0 commit 37699f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libexec/rc/rc.d/ldconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ldconfig_paths()
fi
fi
done
for _ii in ${_paths} ${_soconf}; do
for _ii in ${_paths}; do
if [ -r "${_ii}" ]; then
_ldpaths="${_ldpaths} ${_ii}"
fi
Expand All @@ -49,7 +49,7 @@ ldconfig_start()
if [ -x "${ldconfig_command}" ]; then
_LDC=$(/libexec/ld-elf.so.1 -v | sed -n -e '/^Default lib path /s///p' | tr : ' ')
_LDC=$(ldconfig_paths "${ldconfig_local_dirs}" \
"${ldconfig_paths}" "$_LDC")
"${ldconfig_paths} /etc/ld-elf.so.conf" "$_LDC")
startmsg 'ELF ldconfig path:' ${_LDC}
${ldconfig} -elf ${_ins} ${_LDC}

Expand Down

0 comments on commit 37699f0

Please sign in to comment.