diff options
author | Roland McGrath <roland@gnu.org> | 1995-10-17 01:08:25 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-10-17 01:08:25 +0000 |
commit | d17e960c2bb10746bda675deb88d8b496f834eba (patch) | |
tree | d1c57ef2366aaa53c1b0bd88267c1646966a042a /elf/ldd.sh.in | |
parent | deab9deadc372fe1a367aef2e78c0d8f2885bf23 (diff) | |
download | glibc-d17e960c2bb10746bda675deb88d8b496f834eba.tar.gz glibc-d17e960c2bb10746bda675deb88d8b496f834eba.tar.xz glibc-d17e960c2bb10746bda675deb88d8b496f834eba.zip |
* elf/Makefile (install-others): Add missing slash.
* elf/ldd.sh.in: Prepend `./' to relative file names so ld.so won't search LD_LIBRARY_PATH.
Diffstat (limited to 'elf/ldd.sh.in')
-rw-r--r-- | elf/ldd.sh.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/elf/ldd.sh.in b/elf/ldd.sh.in index 58ae501e53..ed43789cfa 100644 --- a/elf/ldd.sh.in +++ b/elf/ldd.sh.in @@ -13,12 +13,20 @@ case $# in exit 1 ;; 1) # We don't list the file name when there is only one. - exec ${RTLD} --list "$1" && exit 1 + case "$1" in + /*) file="$1" ;; + *) file="./$1" ;; + esac + exec ${RTLD} --list "$file" && exit 1 exit ;; *) set -e # Bail out immediately if ${RTLD} loses on any argument. for file; do echo "${file}:" + case "$file" in + /*) file="$file" ;; + *) file="./$file" ;; + esac ${RTLD} --list "$file" done esac |