소스 검색

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
 
2
 
3
 if [ -d "/lib" ];then
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
         if [ $COUNT -eq 0 ];then
7
         if [ $COUNT -eq 0 ];then
8
                 :
8
                 :
40
                 exit 1
40
                 exit 1
41
         fi
41
         fi
42
 fi
42
 fi
43
-