stricter-interpreter-check.diff
authorAnas Nashif <anas.nashif@intel.com>
Wed, 6 Feb 2013 21:11:08 +0000 (13:11 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Thu, 7 Feb 2013 01:32:17 +0000 (17:32 -0800)
===================================================================

FilesCheck.py

index 673ff51..df3c1cb 100644 (file)
@@ -1272,7 +1272,8 @@ class FilesCheck(AbstractCheck.AbstractCheck):
                                  f.endswith('.la')):
                             printError(pkg, 'script-without-shebang', f)
 
-                        if mode & 0111 == 0 and not is_doc:
+                        if mode & 0111 == 0 and not is_doc and \
+                           interpreter and interpreter.startswith("/"):
                             printError(pkg, 'non-executable-script', f,
                                        oct(perm), interpreter)
                         if '\r' in chunk: