From: Thomas Huth Date: Tue, 16 Feb 2021 07:15:12 +0000 (+0100) Subject: scripts/checkpatch: Improve the check for authors mangled by the mailing list X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7b59d10e23b7cf1e9fbc2c595852e40317aef1e6;p=qemu.git scripts/checkpatch: Improve the check for authors mangled by the mailing list There were recently some patches on the list which had their "From:" line mangled like this: From: qemu_oss--- via Since our test in the checkpatch.pl script did not trigger here, the patches finally also ended up in a pull request, with the wrong author set. So let's improve the regular expression to also complain on these new patterns, too. Message-Id: <20210216071512.1199827-1-thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Christian Schoenebeck Signed-off-by: Thomas Huth --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index e47ad878d8..7f194c842b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1499,7 +1499,7 @@ sub process { $is_patch = 1; } - if ($line =~ /^Author: .*via Qemu-devel.*/) { + if ($line =~ /^(Author|From): .* via .*/) { ERROR("Author email address is mangled by the mailing list\n" . $herecurr); }