lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110610125618.311d8c27@schatten.dmk.lab>
Date:	Fri, 10 Jun 2011 12:56:18 +0200
From:	Florian Mickler <florian@...kler.org>
To:	Joe Perches <joe@...ches.com>
Cc:	Andrew Morton <akpm@...ux-foundation.org>,
	Ryan Mallon <rmallon@...il.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] get_maintainers.pl: Improve .mailmap parsing

On Fri, 10 Jun 2011 03:37:23 -0700
Joe Perches <joe@...ches.com> wrote:

> Entries that used formats other than "Proper Name <commit@...il.xx>"
> were not parsed properly.
> 
> Try to improve the parsing so that the entries in the forms of:
>     Proper Name <proper@...il.xx> <commit@...il.xx>
> and
>     Proper Name <proper@...il.xx> Commit Name <commit@...il.xx>
> are transformed correctly.
> 
> Signed-off-by: Joe Perches <joe@...ches.com> 


Yup. Looks good. 

Reviewed-By: Florian Mickler <florian@...kler.org>

> ---
>  scripts/get_maintainer.pl |    9 +++++----
>  1 files changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
> index d29a8d7..eb2f1e6 100755
> --- a/scripts/get_maintainer.pl
> +++ b/scripts/get_maintainer.pl
> @@ -328,7 +328,8 @@ sub read_mailmap {
>  	# name1 <mail1> <mail2>
>  	# name1 <mail1> name2 <mail2>
>  	# (see man git-shortlog)
> -	if (/^(.+)<(.+)>$/) {
> +
> +	if (/^([^<]+)<([^>]+)>$/) {
>  	    my $real_name = $1;
>  	    my $address = $2;
>  
> @@ -336,13 +337,13 @@ sub read_mailmap {
>  	    ($real_name, $address) = parse_email("$real_name <$address>");
>  	    $mailmap->{names}->{$address} = $real_name;
>  
> -	} elsif (/^<([^\s]+)>\s*<([^\s]+)>$/) {
> +	} elsif (/^<([^>]+)>\s*<([^>]+)>$/) {
>  	    my $real_address = $1;
>  	    my $wrong_address = $2;
>  
>  	    $mailmap->{addresses}->{$wrong_address} = $real_address;
>  
> -	} elsif (/^(.+)<([^\s]+)>\s*<([^\s]+)>$/) {
> +	} elsif (/^(.+)<([^>]+)>\s*<([^>]+)>$/) {
>  	    my $real_name = $1;
>  	    my $real_address = $2;
>  	    my $wrong_address = $3;
> @@ -353,7 +354,7 @@ sub read_mailmap {
>  	    $mailmap->{names}->{$wrong_address} = $real_name;
>  	    $mailmap->{addresses}->{$wrong_address} = $real_address;
>  
> -	} elsif (/^(.+)<([^\s]+)>\s*([^\s].*)<([^\s]+)>$/) {
> +	} elsif (/^(.+)<([^>]+)>\s*(.+)\s*<([^>]+)>$/) {
>  	    my $real_name = $1;
>  	    my $real_address = $2;
>  	    my $wrong_name = $3;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ