test01_pkgquality: another fix to avoid false positives
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
442af8b3b2
commit
951769b5f4
@ -188,14 +188,14 @@ checking for wrong file attributes in bin and lib directories""${NORM}..."
|
|||||||
let "i = 0"
|
let "i = 0"
|
||||||
for pck in ${rpmpkg_name[@]}; do
|
for pck in ${rpmpkg_name[@]}; do
|
||||||
pushd $tmpextractdir/$i >/dev/null
|
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 \
|
||||||
\( -name '*.so' -not -perm 755 \) -or \
|
\( -name '*.so' -not -perm 755 \) -or \
|
||||||
\( \( -path './bin/*' -or \
|
\( \( -path './bin/*' -or \
|
||||||
-path './sbin/*' -or \
|
-path './sbin/*' -or \
|
||||||
-path './usr/bin/*' -or \
|
-path './usr/bin/*' -or \
|
||||||
-path './usr/sbin/*' \) \
|
-path './usr/sbin/*' \) \
|
||||||
-not -perm -111 \) 2>/dev/null ); do
|
-not -perm -111 \) 2>/dev/null \) ); do
|
||||||
let "warning = 1" &&
|
let "warning = 1" &&
|
||||||
notify.warning "${NOTE}${pck##*/}${NORM}"
|
notify.warning "${NOTE}${pck##*/}${NORM}"
|
||||||
notify.note $"found suspect file"": \
|
notify.note $"found suspect file"": \
|
||||||
|
Loading…
Reference in New Issue
Block a user