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(-)
|
|
|
|
|
2017-09-28 22:18:14 +02:00
|
|
|
Index: rpmlint-rpmlint-1.10/FilesCheck.py
|
2017-09-28 13:35:09 +02:00
|
|
|
===================================================================
|
2017-09-28 22:18:14 +02:00
|
|
|
--- rpmlint-rpmlint-1.10.orig/FilesCheck.py
|
|
|
|
+++ rpmlint-rpmlint-1.10/FilesCheck.py
|
|
|
|
@@ -869,7 +869,8 @@ class FilesCheck(AbstractCheck.AbstractC
|
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,
|
2017-09-28 13:35:09 +02:00
|
|
|
"%o" % perm, interpreter,
|
|
|
|
interpreter_args)
|