From e8167b76e48fdbd98062fa05e72e40fdb98eee96 Mon Sep 17 00:00:00 2001 From: Some One Date: Thu, 9 Apr 2015 14:55:39 +0200 Subject: [PATCH] stricter-interpreter-check.diff =================================================================== --- FilesCheck.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FilesCheck.py b/FilesCheck.py index 14cfca3..1b68dd5 100644 --- a/FilesCheck.py +++ b/FilesCheck.py @@ -1265,7 +1265,8 @@ class FilesCheck(AbstractCheck.AbstractCheck): f.endswith('.la')): printError(pkg, 'script-without-shebang', f) - if not mode_is_exec and not is_doc: + if not mode_is_exec and not is_doc and \ + interpreter and interpreter.startswith("/"): printError(pkg, 'non-executable-script', f, oct(perm), interpreter) if b'\r' in chunk: