From 951769b5f45501c1b29a3fe0e119f0a83fa6f955 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Mon, 16 Jan 2012 21:59:51 +0100 Subject: [PATCH] test01_pkgquality: another fix to avoid false positives Signed-off-by: Davide Madrisan --- tests/test01_pkgquality.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test01_pkgquality.in b/tests/test01_pkgquality.in index 847d571..b9b1734 100644 --- a/tests/test01_pkgquality.in +++ b/tests/test01_pkgquality.in @@ -188,14 +188,14 @@ checking for wrong file attributes in bin and lib directories""${NORM}..." let "i = 0" for pck in ${rpmpkg_name[@]}; do pushd $tmpextractdir/$i >/dev/null - for f in $( find . -type f \ + for f in $( find . -type f \( \ \( -name '*.so.*' -not -perm 755 \) -or \ \( -name '*.so' -not -perm 755 \) -or \ \( \( -path './bin/*' -or \ -path './sbin/*' -or \ -path './usr/bin/*' -or \ -path './usr/sbin/*' \) \ - -not -perm -111 \) 2>/dev/null ); do + -not -perm -111 \) 2>/dev/null \) ); do let "warning = 1" && notify.warning "${NOTE}${pck##*/}${NORM}" notify.note $"found suspect file"": \