slitaz-base-files rev 297
ldd: use /home/tux/.local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:/usr/local/bin (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 24 16:02:18 2016 +0100 (2016-01-24) |
parents | ecb326507194 |
children | 522e9624a378 |
files | rootfs/usr/bin/ldd |
line diff
1.1 --- a/rootfs/usr/bin/ldd Sat Jan 16 19:08:30 2016 +0100 1.2 +++ b/rootfs/usr/bin/ldd Sun Jan 24 16:02:18 2016 +0100 1.3 @@ -7,11 +7,8 @@ 1.4 echo 1.5 file="$@" 1.6 for file do 1.7 - case "$file" in 1.8 - */*) ;; 1.9 - *) [ -f "./$file" ] && file="./$file" 1.10 - esac 1.11 - which "$file" | sed 's%^./%%;s%$%:%' 1.12 + file="$(which "$file")" 1.13 + echo "$file" | sed 's%^./%%;s%$%:%' 1.14 LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux* "$file" 1.15 echo 1.16 done