From 86bf239ededef807205f7ebd0ae014d10534e1be Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 24 Feb 2012 11:47:17 +0100 Subject: [PATCH] dracut-functions.sh: only call ldd in find_binary() for "*.so*" --- dracut-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-functions.sh b/dracut-functions.sh index e20f81e04..a5640d681 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -470,7 +470,7 @@ inst_library() { # search in the usual places to find the binary. find_binary() { if [[ -z ${1##/*} ]]; then - if [[ -x $1 ]] || ldd $1 &>/dev/null; then + if [[ -x $1 ]] || { strstr "$1" ".so" && ldd $1 &>/dev/null; }; then echo $1 return 0 fi -- 2.47.3