diff options
author | Mike Frysinger <vapier@chromium.org> | 2021-04-16 10:37:46 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-16 10:37:46 -0400 |
commit | 583af0f01ece9c63042a8a12bac11aaa53faa19b (patch) | |
tree | c877df7d0802880a55e1245403055d9a33819c13 /lddtree.py | |
parent | lddtree: use ldso's --argv0 when available (diff) | |
download | pax-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-x | lddtree.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)) |