2010-10-20 15:23:06 +02:00
|
|
|
Index: InitScriptCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- InitScriptCheck.py.orig
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ InitScriptCheck.py
|
2010-10-20 15:23:06 +02:00
|
|
|
@@ -18,7 +18,7 @@ from Filter import addDetails, printErro
|
2010-10-14 14:32:03 +02:00
|
|
|
import AbstractCheck
|
|
|
|
import Config
|
2008-04-17 04:52:37 +02:00
|
|
|
import Pkg
|
2010-10-14 14:32:03 +02:00
|
|
|
-
|
2008-04-17 04:52:37 +02:00
|
|
|
+import stat
|
|
|
|
|
2010-10-14 14:32:03 +02:00
|
|
|
chkconfig_content_regex = re.compile('^\s*#\s*chkconfig:\s*([-0-9]+)\s+[-0-9]+\s+[-0-9]+')
|
|
|
|
subsys_regex = re.compile('/var/lock/subsys/([^/"\'\n\s;&|]+)', re.MULTILINE)
|
2011-05-20 11:08:13 +02:00
|
|
|
@@ -63,6 +63,9 @@ class InitScriptCheck(AbstractCheck.Abst
|
2010-10-20 15:23:06 +02:00
|
|
|
not fname.startswith('/etc/rc.d/init.d/'):
|
2010-10-14 14:32:03 +02:00
|
|
|
continue
|
|
|
|
|
2010-10-20 15:23:06 +02:00
|
|
|
+ if not stat.S_ISREG(pkgfile.mode):
|
|
|
|
+ continue
|
|
|
|
+
|
2010-10-14 14:32:03 +02:00
|
|
|
basename = os.path.basename(fname)
|
2010-10-20 15:23:06 +02:00
|
|
|
initscript_list.append(basename)
|
|
|
|
if pkgfile.mode & 0500 != 0500:
|