RT1325,2973: Add more extensions to c_rehash
authorViktor Dkhovni <viktor@openssl.org>
Sun, 7 Sep 2014 22:22:33 +0000 (18:22 -0400)
committerRich Salz <rsalz@openssl.org>
Sun, 7 Sep 2014 22:25:59 +0000 (18:25 -0400)
Regexp was bracketed wrong.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 5a8addc432503d99dba39474892b07345a619641)

tools/c_rehash.in

index 683b413df26be1eedcd4d1e27e8fd67ed057898d..0fa320be58d5b65cfe70a23987713f2823ba4567 100644 (file)
@@ -75,7 +75,7 @@ sub hash_dir {
                }
        }
        closedir 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) {