From 97b8718f15b666cd1fb0e8a7f2afa690c5d70728 Mon Sep 17 00:00:00 2001
From: Richard Levitte <levitte@openssl.org>
Date: Fri, 11 Oct 2002 11:34:28 +0000
Subject: [PATCH] There may be more than one single quote to fix. PR: 256

---
 tools/c_rehash.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 0c2d6b1f4..c2e7d67f3 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -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;