From: Joe Perches Date: Tue, 16 Jun 2009 22:34:03 +0000 (-0700) Subject: scripts/get_maintainer.pl: don't print maintainers when not requested X-Git-Tag: v2.6.31-rc1~299^2~45 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0a79c492bcb1022e9a2d0bcb5ed6c624ef6641a0;p=linux-block.git scripts/get_maintainer.pl: don't print maintainers when not requested Fixed bug introduced after using rfc822 address checking. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index a1a43cffbc96..e57c3f6eede7 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -436,10 +436,12 @@ sub push_email_address { $email_address = $2; } - if ($email_usename && $email_name) { - push(@email_to, format_email($email_name, $email_address)); - } else { - push(@email_to, $email_address); + if ($email_maintainer) { + if ($email_usename && $email_name) { + push(@email_to, format_email($email_name, $email_address)); + } else { + push(@email_to, $email_address); + } } }