浏览代码

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

Bob Mottram 8 年前
父节点
当前提交
2475813aa0
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      tests/check-libs-owner.sh

+ 1
- 2
tests/check-libs-owner.sh 查看文件

@@ -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
-