mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
ldconfig: filter out non-existing directories from default path
This is done only for ld-elf32.so.1, where /lib32 is kept in the path
due to the way STANDARD_LIBRARY_PATH is defined in rtld_paths.h.
This change fixes innocent warning appearing after
99132daf6f
Reviewed by: dim, emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42626
This commit is contained in:
parent
e0d0f0930e
commit
806e4e3273
|
@ -53,7 +53,11 @@ ldconfig_start()
|
|||
done
|
||||
_LDC=""
|
||||
if [ -x /libexec/ld-elf32.so.1 ]; then
|
||||
_LDC=$(/libexec/ld-elf32.so.1 -v | sed -n -e '/^Default lib path /s///p' | tr : ' ')
|
||||
for x in $(/libexec/ld-elf32.so.1 -v | sed -n -e '/^Default lib path /s///p' | tr : ' '); do
|
||||
if [ -d "${x}" ]; then
|
||||
_LDC="${_LDC} ${x}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
for i in ${ldconfig32_paths}; do
|
||||
if [ -r "${i}" ]; then
|
||||
|
|
Loading…
Reference in a new issue