mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Mimi Zohar <zohar@linux.ibm.com>
Cc: Andy Whitcroft <apw@canonical.com>,
	Dwaipayan Ray <dwaipayanray1@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Simon Thoby <simon.thoby@viveris.fr>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] checkpatch: make email address check case insensitive
Date: Mon, 16 Aug 2021 04:42:26 -0700	[thread overview]
Message-ID: <d6451fbddb3a17c7bad1c2d574e86e00e7295258.camel@perches.com> (raw)
In-Reply-To: <20210816112725.173206-1-zohar@linux.ibm.com>

On Mon, 2021-08-16 at 07:27 -0400, Mimi Zohar wrote:
> Instead of checkpatch requiring the patch author to exactly match the
> signed-off-by tag, commit 48ca2d8ac8a1 ("checkpatch: add new warnings
> to author signoff checks.") safely relaxed this requirement.
> 
> Although the local-part of an email address (local-part@domain), may
> be case sensitive, exploiting the case sensitivity of mailbox
> local-parts impedes interoperability and is discouraged.  Mailbox
> domains follow normal DNS rules and are hence not case sensitive.
> (Refer to https://datatracker.ietf.org/doc/html/rfc5321#section-2.4.)
> 
> Further relax the patch author and signed-off-by tag comparison by
> making the email address check case insensitive.
> 
> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>

Acked-by: Joe Perches <joe@perches.com>

> ---
>  scripts/checkpatch.pl | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 461d4221e4a4..1efa2997df62 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -2909,10 +2909,10 @@ sub process {
>  					my ($email_name, $email_comment, $email_address, $comment1) = parse_email($ctx);
>  					my ($author_name, $author_comment, $author_address, $comment2) = parse_email($author);
>  
> 
> -					if ($email_address eq $author_address && $email_name eq $author_name) {
> +					if (lc $email_address eq lc $author_address && $email_name eq $author_name) {
>  						$author_sob = $ctx;
>  						$authorsignoff = 2;
> -					} elsif ($email_address eq $author_address) {
> +					} elsif (lc $email_address eq lc $author_address) {
>  						$author_sob = $ctx;
>  						$authorsignoff = 3;
>  					} elsif ($email_name eq $author_name) {



      reply	other threads:[~2021-08-16 11:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-16 11:27 Mimi Zohar
2021-08-16 11:42 ` Joe Perches [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d6451fbddb3a17c7bad1c2d574e86e00e7295258.camel@perches.com \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --cc=apw@canonical.com \
    --cc=dwaipayanray1@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=simon.thoby@viveris.fr \
    --cc=zohar@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®