|
@@ -1583,7 +1583,8 @@ sub process {
|
|
# Check for incorrect file permissions
|
|
# Check for incorrect file permissions
|
|
if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
|
|
if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
|
|
my $permhere = $here . "FILE: $realfile\n";
|
|
my $permhere = $here . "FILE: $realfile\n";
|
|
- if ($realfile =~ /(Makefile|Kconfig|\.c|\.h|\.S|\.tmpl)$/) {
|
|
|
|
|
|
+ if ($realfile !~ m@scripts/@ &&
|
|
|
|
+ $realfile !~ /\.(py|pl|awk|sh)$/) {
|
|
ERROR("EXECUTE_PERMISSIONS",
|
|
ERROR("EXECUTE_PERMISSIONS",
|
|
"do not set execute permissions for source files\n" . $permhere);
|
|
"do not set execute permissions for source files\n" . $permhere);
|
|
}
|
|
}
|