Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp247964pxb; Mon, 16 Aug 2021 04:44:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8D1a8O/UibGA1ZY57Uqanny1NEDfktWhEIOro3fuCPjzyO8vwb3WYxdxyisGa7elh/a8+ X-Received: by 2002:a02:2307:: with SMTP id u7mr15222631jau.28.1629114287333; Mon, 16 Aug 2021 04:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629114287; cv=none; d=google.com; s=arc-20160816; b=0BJVJ9VEb17LHl60yn2fklpZzoTgEDRMweMboHkULGaW3WvDvcMks9oeRYiqu2sfIT ki7so/1o3lruuE66kAHaMh0wUyiWci2Bcrw7cIRX55isoKnhjglCjzcRHQYPum5njCGc HKlqo1YrqqKrJVLogZRxVzdotSc7lNmbaCEnI2Bz+cugmBGdapJBIYHiVBL2tUBVNJLY JYRV8wEmxnfn2HBHdoUCNoFaRkMOeiPAymPvWp+iEiU+Qjr0cJqQHSlOs278Q/eMiWXq cxMJcEhw4sTOiHP7ex0qE+kgQ/HwPmfZXB8/213ABUMrYHSR8E44PFIbXlf+3dg2b6oy 8f5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=tJaeFhrhtu2u7iK8q4/+TZUfclUxAAW7Q5Lhzw8TIqA=; b=mvoiU5dO5D4gg3aqVE6DjzhpMwzyX2x00MTKa60nW866Rf1nuJlQhZ0Z01xGbJ/MNB 3HmLeH6mvE3zJ/pE1Wd3gnLuj9Qby8Sw2t1wBMmGGG8n7T3X9KRD7xUUuqtJwfUokVol YGxbJP3Sjild4HgMoG2h3yZBffqfPRGQDbUXFTQhIFQkIxgXC6lew7cXn+R+lY9uw95w yauQzioWmgjZAgqX4IJN4JwA/PJlAhbAqjii9KQMB7R41ZnrpdDWs6upu38hdYDlrae7 aC5/3C0gEaZoAICidgPTLjvlJo/vsUObpW7sajdeMSKfX7Czd1bzvHDzAPR9QFtkOpVI E67w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si11598811jaj.19.2021.08.16.04.44.27; Mon, 16 Aug 2021 04:44:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236083AbhHPLnC (ORCPT + 99 others); Mon, 16 Aug 2021 07:43:02 -0400 Received: from smtprelay0169.hostedemail.com ([216.40.44.169]:53110 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231758AbhHPLnB (ORCPT ); Mon, 16 Aug 2021 07:43:01 -0400 Received: from omf18.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 16CDE181A3499; Mon, 16 Aug 2021 11:42:29 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA id 0165B2EBFA0; Mon, 16 Aug 2021 11:42:27 +0000 (UTC) Message-ID: Subject: Re: [PATCH] checkpatch: make email address check case insensitive From: Joe Perches To: Mimi Zohar Cc: Andy Whitcroft , Dwaipayan Ray , Andrew Morton , Simon Thoby , linux-kernel@vger.kernel.org Date: Mon, 16 Aug 2021 04:42:26 -0700 In-Reply-To: <20210816112725.173206-1-zohar@linux.ibm.com> References: <20210816112725.173206-1-zohar@linux.ibm.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: 0165B2EBFA0 X-Spam-Status: No, score=5.19 X-Stat-Signature: b167u5d3g89eykxws36dfw6xw8zz3qsc X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+b+rZ5MuvFtwEXrlsFy3pApEMYUCVTPTA= X-HE-Tag: 1629114147-944958 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Joe Perches > --- > ?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) {