The patch titled Subject: scripts/get_maintainer.pl: handle file names beginning with ./ has been added to the -mm tree. Its filename is scripts-get_maintainerpl-handle-file-names-beginning-with.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/scripts-get_maintainerpl-handle-file-names-beginning-with.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/scripts-get_maintainerpl-handle-file-names-beginning-with.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Joe Perches <joe@xxxxxxxxxxx> Subject: scripts/get_maintainer.pl: handle file names beginning with ./ The problem is that get_maintainer.pl doesn't work if you have a ./ prefix on the filename. For example, if you type: ./scripts/get_maintainer.pl -f ./drivers/usb/usb-skeleton.c then the current code only includes LKML and people from the git log, it doesn't include Greg or the linux-usb list. Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: Joe Perches <joe@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/get_maintainer.pl | 4 ++++ 1 file changed, 4 insertions(+) diff -puN scripts/get_maintainer.pl~scripts-get_maintainerpl-handle-file-names-beginning-with scripts/get_maintainer.pl --- a/scripts/get_maintainer.pl~scripts-get_maintainerpl-handle-file-names-beginning-with +++ a/scripts/get_maintainer.pl @@ -16,7 +16,9 @@ my $P = $0; my $V = '0.26'; use Getopt::Long qw(:config no_auto_abbrev); +use Cwd; +my $cur_path = fastgetcwd() . '/'; my $lk_path = "./"; my $email = 1; my $email_usename = 1; @@ -429,6 +431,8 @@ foreach my $file (@ARGV) { } } if ($from_filename) { + $file =~ s/^\Q${cur_path}\E//; #strip any absolute path + $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree push(@files, $file); if ($file ne "MAINTAINERS" && -f $file && ($keywords || $file_emails)) { open(my $f, '<', $file) _ Patches currently in -mm which might be from joe@xxxxxxxxxxx are scripts-get_maintainerpl-handle-file-names-beginning-with.patch checkpatch-warn-when-casting-constants-to-c90-int-or-longer-types.patch checkpatch-improve-macros-with-flow-control-test.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html