Ignore LD_LIBRARY_PATH when determining file type in ldd.
Otherwise if a 32bit copy of a library used by Toybox exists on LD_LIBRARY_PATH then file(1) will fail. Bug: 181666541 Test: Manually copied to device and verified correct behaviour Change-Id: I7d729927b1b433ec953c266920489613fc096e03
This commit is contained in:
parent
974721431d
commit
557308c732
|
@ -10,7 +10,7 @@ function error() {
|
||||||
|
|
||||||
[ $# -eq 1 ] || error "usage: ldd FILE"
|
[ $# -eq 1 ] || error "usage: ldd FILE"
|
||||||
|
|
||||||
what=$(file -L "$1")
|
what=$(LD_LIBRARY_PATH= file -L "$1")
|
||||||
case "$what" in
|
case "$what" in
|
||||||
*32-bit*)
|
*32-bit*)
|
||||||
linker --list "$1"
|
linker --list "$1"
|
||||||
|
|
Loading…
Reference in New Issue