rpmlint/stricter-interpreter-check.diff
OBS User autobuild ef72ae8a8c Accepting request 38818 from Base:System
Copy from Base:System/rpmlint based on submit request 38818 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/38818
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=58
2010-04-26 21:35:02 +00:00

12 lines
579 B
Diff

--- FilesCheck.py
+++ FilesCheck.py
@@ -826,7 +826,7 @@
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.startswith("/"):
printError(pkg, 'non-executable-script', f,
oct(perm), interpreter)
if line.endswith('\r\n') or line.endswith('\r'):