There may be more than one single quote to fix.
[openssl.git] / tools / c_rehash.in
index 0c2d6b1f4c73bc92431dd40411f246f08ea84cc1..c2e7d67f3bcab3bc0b6040d77d1fcad8f6583221 100644 (file)
@@ -100,7 +100,7 @@ sub check_file {
 
 sub link_hash_cert {
                my $fname = $_[0];
-               $fname =~ s/'/'\\''/;
+               $fname =~ s/'/'\\''/g;
                my ($hash, $fprint) = `$openssl x509 -hash -fingerprint -noout -in '$fname'`;
                chomp $hash;
                chomp $fprint;