get_maintainer: allow keywords to match filenames
[cascardo/linux.git] / scripts / get_maintainer.pl
index 18d4ab5..ce4cc83 100755 (executable)
@@ -611,6 +611,10 @@ sub get_maintainers {
                                    $hash{$tvi} = $value_pd;
                                }
                            }
+                       } elsif ($type eq 'K') {
+                           if ($file =~ m/$value/x) {
+                               $hash{$tvi} = 0;
+                           }
                        }
                    }
                }