Browse Source

Don't check daemons which link to /dev/null

Bob Mottram 8 years ago
parent
commit
2475813aa0
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      tests/check-libs-owner.sh

+ 1
- 2
tests/check-libs-owner.sh View File

@@ -2,7 +2,7 @@
2 2
 
3 3
 if [ -d "/lib" ];then
4 4
 
5
-        COUNT=$(find -L /lib  \! -user root  -exec ls -l {} \; |wc -l)
5
+        COUNT=$(find -L /lib  \! -user root  -exec ls -l {} \; | grep -v '> /dev/null' | wc -l)
6 6
 
7 7
         if [ $COUNT -eq 0 ];then
8 8
                 :
@@ -40,4 +40,3 @@ if [ -d "/usr/lib64" ];then
40 40
                 exit 1
41 41
         fi
42 42
 fi
43
-