slitaz-base-files diff rootfs/usr/bin/ldd @ rev 343

fix ipinfo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 04 14:28:55 2020 +0000 (2020-10-04)
parents 95bb4b133a7b
children
line diff
     1.1 --- a/rootfs/usr/bin/ldd	Sat Jan 21 16:31:34 2017 +0200
     1.2 +++ b/rootfs/usr/bin/ldd	Sun Oct 04 14:28:55 2020 +0000
     1.3 @@ -7,8 +7,9 @@
     1.4  file="$@"
     1.5  for file do
     1.6  	file="$(which "$file")"
     1.7 +	[ ! -f "$file" ] && exit
     1.8  	ld="$(sed '/\/lib.*\/ld/!dq' "$file")"
     1.9  	echo "$file" | sed 's%^./%%;s%$%:%'
    1.10 -	LD_TRACE_LOADED_OBJECTS=1 "$(realpath ${ld:-/lib/ld-linux*})" "$file"
    1.11 +	LD_TRACE_LOADED_OBJECTS=1 "$(realpath ${ld:-/lib/ld-linux*})" "$file" 2>/dev/null
    1.12  	echo
    1.13  done