Dirk Mueller
2764482b3b
0001-Handle-post-scripts-that-contain-non-ascii-character.patch OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=515
24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
From: Some One <nobody@opensuse.org>
|
|
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(-)
|
|
|
|
Index: rpmlint-rpmlint-1.10/FilesCheck.py
|
|
===================================================================
|
|
--- rpmlint-rpmlint-1.10.orig/FilesCheck.py
|
|
+++ rpmlint-rpmlint-1.10/FilesCheck.py
|
|
@@ -872,7 +872,8 @@ class FilesCheck(AbstractCheck.AbstractC
|
|
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,
|
|
"%o" % perm, interpreter,
|
|
interpreter_args)
|