forked from pool/rpmlint
10a26d790a
Accepted submit request 67998 from user coolo OBS-URL: https://build.opensuse.org/request/show/67998 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=101
15 lines
703 B
Diff
15 lines
703 B
Diff
Index: FilesCheck.py
|
|
===================================================================
|
|
--- FilesCheck.py.orig
|
|
+++ FilesCheck.py
|
|
@@ -1261,7 +1261,8 @@ class FilesCheck(AbstractCheck.AbstractC
|
|
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:
|