Add support for absolute paths when parsing ld.so.conf

This commit is contained in:
Pierre Pronchery 2019-07-02 12:40:56 +02:00
parent 4056ea7e6d
commit 221ed78b1d

View File

@ -73,7 +73,11 @@ _library_ldsoconf()
#recurse into the file included
line="${line#include }"
if [ "${line#/}" = "$line" ]; then
files="${ldsoconf%/*}/$line"
else
files="$DESTDIR${line#include }"
fi
#XXX breaks on whitespace
for filename in $files; do
[ -f "$filename" ] &&