summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2007-10-24 13:59:13 +0000
committerPeter Jones <pjones@redhat.com>2007-10-24 13:59:13 +0000
commit379da9fdb8a2ae1a42d7c13ae426f28786109e6f (patch)
treed2766b371d2dfcfb87a18c0921e94bc07e8e6a11 /scripts
parent0192eaadbfbe36fd950609563dc63c26f35da618 (diff)
- Use the last (and hopefully newest) ld.so we find, not the first, and don't
follow symlinks.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index dce89b5f8..e7cb1f9d2 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -74,11 +74,11 @@ get_dso_deps() {
# this is a hack, but the only better way requires binutils or elfutils
# be installed. i.e., we need readelf to find the interpretter.
if [ -z "$LDSO" ]; then
- for ldso in $root/lib*/ld*.so* ; do
+ for ldso in /lib*/ld*.so* ; do
+ [ -L $ldso ] && continue
[ -x $ldso ] || continue
$ldso --verify $bin >/dev/null 2>&1 || continue
LDSO=$(echo $ldso |sed -e "s,$root,,")
- break
done
fi