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>] [day] [month] [year] [list]
Message-ID: <c9d89bb24c7414142414c60371e210fdcf4617d2.camel@perches.com>
Date:   Fri, 08 May 2020 11:28:37 -0700
From:   Joe Perches <joe@...ches.com>
To:     akpm@...ux-foundation.org, geert+renesas@...der.be,
        konstantin@...uxfoundation.org,
        Pali Rohár <pali@...nel.org>
Cc:     LKML <linux-kernel@...r.kernel.org>
Subject: Re: + checkpatch-use-patch-subject-when-reading-from-stdin.patch
 added to -mm tree

On Tue, 2020-05-05 at 12:18 -0700, akpm@...ux-foundation.org wrote:
> The patch titled
>      Subject: checkpatch: use patch subject when reading from stdin
> has been added to the -mm tree.  Its filename is
>      checkpatch-use-patch-subject-when-reading-from-stdin.patch

Hey Andrew:

Please apply this patch on top of Geert's first one to reduce cpu usage.

For the original patch:

Acked-by: Joe Perches <joe@...ches.com>
---
 scripts/checkpatch.pl | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e5b6b9aa21d6..8223342e9b69 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1061,11 +1061,8 @@ for my $filename (@ARGV) {
 	}
 	while (<$FILE>) {
 		chomp;
-		if ($vname eq 'Your patch') {
-			my ($subject) = $_ =~ /^Subject:\s*(.*)/;
-			$vname = '"' . $subject . '"' if $subject;
-		}
 		push(@rawlines, $_);
+		$vname = qq("$1") if ($filename eq '-' && $_ =~ m/^Subject:\s+(.+)/i);
 	}
 	close($FILE);
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ