mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
c_rehash: Fix file extension matching
For some reason, parenthesis were added 8 years ago in commit
a787c2590e
. This essentially removed the
\. and $ constructs from the middle branches. Hence a file called e.g.
cert.key would accidentally match the (cer) rule.
CLA: trivial
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19427)
This commit is contained in:
parent
f44d32fdfb
commit
706fc5f6eb
@ -143,7 +143,7 @@ sub hash_dir {
|
||||
}
|
||||
}
|
||||
}
|
||||
FILE: foreach $fname (grep {/\.(pem)|(crt)|(cer)|(crl)$/} @flist) {
|
||||
FILE: foreach $fname (grep {/\.(pem|crt|cer|crl)$/} @flist) {
|
||||
# Check to see if certificates and/or CRLs present.
|
||||
my ($cert, $crl) = check_file($fname);
|
||||
if (!$cert && !$crl) {
|
||||
|
Loading…
Reference in New Issue
Block a user