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-next>] [day] [month] [year] [list]
Date:   Tue, 25 Jul 2023 10:06:42 +0300
From:   Costa Shulyupin <costa.shul@...hat.com>
To:     Joe Perches <joe@...ches.com>,
        linux-kernel@...r.kernel.org (open list)
Cc:     Costa Shulyupin <costa.shul@...hat.com>
Subject: [PATCH] get_maintainer: strip long text in brackets from mail description

assuming this text is optional,
because truncated bracket causes error of git send-email:

git send-email --to-cmd=get_maintainer.pl ....
Unmatched () '(open list:CXLFLASH (IBM Coherent Accelerator Processor In...)' '' at /usr/libexec/git-core/git-send-email line 652.
error: unable to extract a valid address from: linux-scsi@...r.kernel.org (open list:CXLFLASH (IBM Coherent Accelerator Processor In...)

Signed-off-by: Costa Shulyupin <costa.shul@...hat.com>
---
 scripts/get_maintainer.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index ab123b498fd9..8319694a9c2f 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -1252,6 +1252,7 @@ sub get_subsystem_name {
     my $start = find_starting_index($index);
 
     my $subsystem = $typevalue[$start];
+    $subsystem =~ s/\(....*\)\s*//;
     if ($output_section_maxlen && length($subsystem) > $output_section_maxlen) {
 	$subsystem = substr($subsystem, 0, $output_section_maxlen - 3);
 	$subsystem =~ s/\s*$//;
-- 
2.41.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ