projects
/
platform
/
upstream
/
rpmlint.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
102c0e4
)
stricter-interpreter-check.diff
author
Anas Nashif
<anas.nashif@intel.com>
Wed, 6 Feb 2013 21:11:08 +0000
(13:11 -0800)
committer
Anas Nashif
<anas.nashif@intel.com>
Thu, 7 Feb 2013 01:32:17 +0000
(17:32 -0800)
===================================================================
FilesCheck.py
patch
|
blob
|
history
diff --git
a/FilesCheck.py
b/FilesCheck.py
index
673ff51
..
df3c1cb
100644
(file)
--- a/
FilesCheck.py
+++ b/
FilesCheck.py
@@
-1272,7
+1272,8
@@
class FilesCheck(AbstractCheck.AbstractCheck):
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: