forked from pool/rpmlint
12 lines
579 B
Diff
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'):
|