summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2011-01-08 18:09:01 +0100
committerTails developers <amnesia@boum.org>2011-09-07 13:55:27 +0200
commitd47bea550abcaa87df62bece5f6a94eeb97c8487 (patch)
tree123a0f11de925cddbfb6c6fa4163bfd18a91d607
parent37824b1cb96596d93e397e876d95dab7cdba495e (diff)
downloadlive-boot-d47bea550abcaa87df62bece5f6a94eeb97c8487.tar.gz
live-boot-d47bea550abcaa87df62bece5f6a94eeb97c8487.zip
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.
-rw-r--r--debian/live-boot.init13
1 files 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