aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2021-04-16 10:37:46 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-16 10:37:46 -0400
commit583af0f01ece9c63042a8a12bac11aaa53faa19b (patch)
treec877df7d0802880a55e1245403055d9a33819c13 /lddtree.py
parentlddtree: use ldso's --argv0 when available (diff)
downloadpax-utils-583af0f01ece9c63042a8a12bac11aaa53faa19b.tar.gz
pax-utils-583af0f01ece9c63042a8a12bac11aaa53faa19b.tar.bz2
pax-utils-583af0f01ece9c63042a8a12bac11aaa53faa19b.zip
lddtree: handle ${ORIGIN} like $ORIGIN
Bug: https://bugs.gentoo.org/653586 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lddtree.py')
-rwxr-xr-xlddtree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lddtree.py b/lddtree.py
index fae39e0..cd068f6 100755
--- a/lddtree.py
+++ b/lddtree.py
@@ -207,6 +207,8 @@ def ParseLdPaths(str_ldpaths, root='', path=None):
ldpath = os.getcwd()
elif '$ORIGIN' in ldpath:
ldpath = ldpath.replace('$ORIGIN', os.path.dirname(path))
+ elif '${ORIGIN}' in ldpath:
+ ldpath = ldpath.replace('${ORIGIN}', os.path.dirname(path))
else:
ldpath = root + ldpath
ldpaths.append(normpath(ldpath))