2009-08-28 22:12:54 +02:00
|
|
|
Index: FilesCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- FilesCheck.py.orig
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ FilesCheck.py
|
2009-08-28 22:12:54 +02:00
|
|
|
@@ -980,7 +980,8 @@ class FilesCheck(AbstractCheck.AbstractC
|
|
|
|
(includefile_regex.search(f) or \
|
|
|
|
develfile_regex.search(f) or is_buildconfig):
|
2008-04-17 04:52:37 +02:00
|
|
|
printWarning(pkg, 'devel-file-in-non-devel-package', f)
|
|
|
|
- if mode & 0444 != 0444 and perm & 07000 == 0 and f[0:len('/var/log')] != '/var/log':
|
|
|
|
+ if mode & 0444 != 0444 and perm & 07000 == 0 and \
|
|
|
|
+ not f.startswith('/var/log/') and not f.startswith('/etc/'):
|
|
|
|
printError(pkg, 'non-readable', f, oct(perm))
|
|
|
|
if size == 0 and not normal_zero_length_regex.search(f) and f not in ghost_files:
|
|
|
|
printError(pkg, 'zero-length', f)
|