From 5d607ae0d89e210b688cc1821d399c854f7d4d84 Mon Sep 17 00:00:00 2001 From: v4hn Date: Thu, 30 Oct 2014 21:17:21 +0100 Subject: [PATCH] lddcheck should ignore files in /usr/share/ It didn't ignore /usr/share/games/ before. --- plugins/check-ldd.plugin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check-ldd.plugin b/plugins/check-ldd.plugin index 467eefa28..ba38d89b6 100644 --- a/plugins/check-ldd.plugin +++ b/plugins/check-ldd.plugin @@ -28,7 +28,7 @@ plugin_module_check_ldd() { # fast-construct per-module LD path including all /lib/ like directories NEW_LD=$(cat "$I_LOG" | grep "/lib/" | files | sed 's/\(.*\)\/\([^\/]*\)$/\1/g' | uniq | tr '\n' ':') - LOG=$(cat "$I_LOG" | grep "/bin/\|/games/\|/lib/\|/sbin/\|/libexec/" | grep -v "/doc/\|/fonts/\|/include/\|/locale/\|/man/\|/modules/\|/var/") + LOG=$(cat "$I_LOG" | grep "/bin/\|/games/\|/lib/\|/sbin/\|/libexec/" | grep -v "/doc/\|/fonts/\|/include/\|/locale/\|/man/\|/modules/\|/var/\|/share/") for FILE in $LOG; do if [ -f "$FILE" ] && [ ! -h "$FILE" ] && file -b "$FILE" | grep -q "ELF" && LD_LIBRARY_PATH=$NEW_LD ldd "$FILE" 2>&1 | grep -q "not found" ; then