aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-02 17:37:27 +0000
committerMike Frysinger <vapier@gentoo.org>2013-01-02 17:37:27 +0000
commitc895c04a11fb11698e12cea69962c87f2997d4f8 (patch)
treef799ebcd1aa00fd1915bca56b7d3f560df2ef460
parentrun pyflakes on .py files if available (diff)
downloadpax-utils-c895c04a11fb11698e12cea69962c87f2997d4f8.tar.gz
pax-utils-c895c04a11fb11698e12cea69962c87f2997d4f8.tar.bz2
pax-utils-c895c04a11fb11698e12cea69962c87f2997d4f8.zip
lddtree.sh: fix by Loïc Yhuel for LD_LIBRARY_PATH processing #449718v0.6
-rwxr-xr-xlddtree.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lddtree.sh b/lddtree.sh
index 092ab0d..acbe442 100755
--- a/lddtree.sh
+++ b/lddtree.sh
@@ -2,7 +2,7 @@
# Copyright 2007-2012 Gentoo Foundation
# Copyright 2007-2012 Mike Frysinger <vapier@gentoo.org>
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.sh,v 1.17 2012/11/15 20:35:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.sh,v 1.18 2013/01/02 17:37:27 vapier Exp $
argv0=${0##*/}
@@ -28,7 +28,7 @@ usage() {
}
version() {
- local id='$Id: lddtree.sh,v 1.17 2012/11/15 20:35:04 vapier Exp $'
+ local id='$Id: lddtree.sh,v 1.18 2013/01/02 17:37:27 vapier Exp $'
id=${id##*,v }
exec echo "lddtree-${id% * Exp*}"
}
@@ -84,7 +84,7 @@ find_elf() {
local p path=${LD_LIBRARY_PATH}
while : ; do
p=${path%%:*}
- check_paths "${elf}" "${path:-${PWD}}" && return 0
+ check_paths "${elf}" "${p:-${PWD}}" && return 0
[[ ${path} == *:* ]] || break
path=${path#*:}
done