From 2475813aa01a19989eda0f1fd8020de063e47640 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Dec 2016 20:09:17 +0000 Subject: [PATCH] Don't check daemons which link to /dev/null --- tests/check-libs-owner.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/check-libs-owner.sh b/tests/check-libs-owner.sh index b70bcd6e..ecda7471 100644 --- a/tests/check-libs-owner.sh +++ b/tests/check-libs-owner.sh @@ -2,7 +2,7 @@ if [ -d "/lib" ];then - COUNT=$(find -L /lib \! -user root -exec ls -l {} \; |wc -l) + COUNT=$(find -L /lib \! -user root -exec ls -l {} \; | grep -v '> /dev/null' | wc -l) if [ $COUNT -eq 0 ];then : @@ -40,4 +40,3 @@ if [ -d "/usr/lib64" ];then exit 1 fi fi -