2015-04-10 16:35:46 +02:00
|
|
|
From: Some One <nobody@opensuse.org>
|
|
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
|
|
Subject: [PATCH] stricter-interpreter-check.diff
|
|
|
|
|
2010-10-14 14:32:03 +02:00
|
|
|
===================================================================
|
2015-04-10 16:35:46 +02:00
|
|
|
---
|
|
|
|
FilesCheck.py | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/FilesCheck.py b/FilesCheck.py
|
2015-11-26 11:24:13 +01:00
|
|
|
index 59901e7..6c322c6 100644
|
2015-04-10 16:35:46 +02:00
|
|
|
--- a/FilesCheck.py
|
|
|
|
+++ b/FilesCheck.py
|
2015-11-26 11:24:13 +01:00
|
|
|
@@ -1268,7 +1268,8 @@ class FilesCheck(AbstractCheck.AbstractCheck):
|
2011-04-21 12:12:02 +02:00
|
|
|
f.endswith('.la')):
|
|
|
|
printError(pkg, 'script-without-shebang', f)
|
2010-04-26 23:35:02 +02:00
|
|
|
|
2014-02-21 15:54:14 +01:00
|
|
|
- if not mode_is_exec and not is_doc:
|
|
|
|
+ if not mode_is_exec and not is_doc and \
|
|
|
|
+ interpreter and interpreter.startswith("/"):
|
2011-04-21 12:12:02 +02:00
|
|
|
printError(pkg, 'non-executable-script', f,
|
2015-11-26 11:24:13 +01:00
|
|
|
"%o" % perm, interpreter)
|
2015-04-10 16:35:46 +02:00
|
|
|
if b'\r' in chunk:
|