Parcourir la source

Show libs with bad permissions

Bob Mottram il y a 7 ans
Parent
révision
d35e9be67d
1 fichiers modifiés avec 8 ajouts et 4 suppressions
  1. 8
    4
      tests/check-libs-mode.sh

+ 8
- 4
tests/check-libs-mode.sh Voir le fichier

@@ -7,7 +7,8 @@ if [ -d "/lib" ];then
7 7
         if [ $COUNT -eq 0 ];then
8 8
                 :
9 9
         else
10
-                exit 1
10
+            find -L /lib  -type f  -perm  /022  -exec ls -l {} \;
11
+            exit 1
11 12
         fi
12 13
 fi
13 14
 if [ -d "/lib64" ];then
@@ -17,7 +18,8 @@ if [ -d "/lib64" ];then
17 18
         if [ $COUNT -eq 0 ];then
18 19
                 :
19 20
         else
20
-                exit 1
21
+            find -L /lib64  -type f  -perm  /022  -exec ls -l {} \;
22
+            exit 1
21 23
         fi
22 24
 fi
23 25
 if [ -d "/usr/lib" ];then
@@ -27,7 +29,8 @@ if [ -d "/usr/lib" ];then
27 29
         if [ $COUNT -eq 0 ];then
28 30
                 :
29 31
         else
30
-                exit 1
32
+            find -L /usr/lib  -type f  -perm  /022  -exec ls -l {} \;
33
+            exit 1
31 34
         fi
32 35
 fi
33 36
 if [ -d "/usr/lib64" ];then
@@ -37,7 +40,8 @@ if [ -d "/usr/lib64" ];then
37 40
         if [ $COUNT -eq 0 ];then
38 41
                 :
39 42
         else
40
-                exit 1
43
+            find -L /usr/lib64  -type f  -perm  /022  -exec ls -l {} \;
44
+            exit 1
41 45
         fi
42 46
 fi
43 47