[From nobody Sat Mar 21 15:25:06 2026
Received: (at submit) by bugs.debian.org; 16 Aug 2019 16:28:19 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
 (2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00, FOURLA, HAS_PACKAGE,
 SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no
 version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 55; hammy, 150; neutral, 96; spammy,
 0. spammytokens: hammytokens:0.000-+--H*u:60.0, 0.000-+--libssl11,
 0.000-+--libssl1.1, 0.000-+--4.19.0-5-amd64, 0.000-+--41905amd64
Return-path: &lt;debian_bugreports@ulle.dyndns.org&gt;
Received: from c1004.mx.srv.dfn.de ([194.95.238.114])
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from &lt;debian_bugreports@ulle.dyndns.org&gt;)
 id 1hyf5O-0002gZ-QG
 for submit@bugs.debian.org; Fri, 16 Aug 2019 16:28:19 +0000
Received: from localhost (localhost [127.0.0.1])
 by c1004.mx.srv.dfn.de (Postfix) with ESMTP id 73E7C2020B
 for &lt;submit@bugs.debian.org&gt;; Fri, 16 Aug 2019 18:22:03 +0200 (CEST)
Received: from c1004.mx.srv.dfn.de ([127.0.0.1])
 by localhost (mgw1-erl.srv.dfn.de [127.0.0.1]) (amavisd-new, port 20077)
 with ESMTP id 9p1tO0Alz4J4 for &lt;submit@bugs.debian.org&gt;;
 Fri, 16 Aug 2019 18:22:02 +0200 (CEST)
Received: from mail.dfn.de (mail.dfn.de [194.95.245.150])
 by c1004.mx.srv.dfn.de (Postfix) with ESMTPS
 for &lt;submit@bugs.debian.org&gt;; Fri, 16 Aug 2019 18:22:02 +0200 (CEST)
Received: from [10.211.55.7] (kuma114.dfn.de [194.95.252.114])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mspool2.srv.dfn.de (Postfix) with ESMTPSA id C20B7A2
 for &lt;submit@bugs.debian.org&gt;; Fri, 16 Aug 2019 18:22:01 +0200 (CEST)
From: Andreas Gryphius &lt;debian_bugreports@ulle.dyndns.org&gt;
Subject: openssl: Wrong regular expression in /usr/bin/c_rehash
To: submit@bugs.debian.org
Message-ID: &lt;b43c03f8-8c34-8115-ae52-1f561cd0d273@ulle.dyndns.org&gt;
Date: Fri, 16 Aug 2019 18:22:00 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: de-LU
Content-Transfer-Encoding: 7bit
X-Greylist: delayed 364 seconds by postgrey-1.36 at buxtehude;
 Fri, 16 Aug 2019 16:28:18 UTC
Delivered-To: submit@bugs.debian.org

Package: openssl
Version: 1.1.1c-1
Severity: normal

Dear Maintainer,

the perl script /usr/bin/c_rehash contains a line (#123)

FILE: foreach $fname (grep {/\.(pem)|(crt)|(cer)|(crl)$/} @flist) {

where I think the regex grouping is wrong.
Obviously it is intended to find only files with the listed suffixes.
But it also finds files with &quot;crt&quot; or &quot;cer&quot; just anywhere within the 
filename. For example it would find the file &quot;i_am_not_a_cert_file.pdf&quot;

My suggestion for a propper regex would be

FILE: foreach $fname (grep {/\.(pem|crt|cer|crl)$/} @flist) {

Hope this will be fixed, because I changed it locally on my debian 
stretch machine quite a while ago and stumbled over this again when 
upgrading to buster (file /usr/bin/c_rehash got silently overwritten) .

Thanks, Andreas

-- System Information:
Debian Release: 10.0
   APT prefers stable
   APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages openssl depends on:
ii  libc6      2.28-10
ii  libssl1.1  1.1.1c-1

openssl recommends no packages.

Versions of packages openssl suggests:
ii  ca-certificates  20190110

-- no debconf information
Report will be sent to Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
]