From d47bea550abcaa87df62bece5f6a94eeb97c8487 Mon Sep 17 00:00:00 2001 From: Tails developers Date: Sat, 8 Jan 2011 18:09:01 +0100 Subject: [PATCH] Fixing cache_path: cache non-executable libs dependencies as well. Most shared libraries are not executable and nevertheless depend on other shared libraries. These dependencies must be cached as well. --- debian/live-boot.init | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/debian/live-boot.init b/debian/live-boot.init index cd2e4cd..1130730 100644 --- a/debian/live-boot.init +++ b/debian/live-boot.init @@ -47,15 +47,12 @@ cache_path() find "${path}" -type f | xargs cat > /dev/null 2>&1 elif [ -f "${path}" ] then - if [ -x "${path}" ] + if file -L "${path}" | grep -q 'dynamically linked' then - if file -L "${path}" | grep -q 'dynamically linked' - then - for lib in $(ldd "${path}" | awk '{ print $3 }') - do - cache_path "${lib}" - done - fi + for lib in $(ldd "${path}" | awk '{ print $3 }') + do + cache_path "${lib}" + done fi cat "${path}" >/dev/null 2>&1 -- 2.1.4