summaryrefslogtreecommitdiff
path: root/tools/c_rehash.in
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-11 20:28:23 +0000
committerRichard Levitte <levitte@openssl.org>2002-10-11 20:28:23 +0000
commitcaa4f47f615e801127013dd5689a2fa9314c536a (patch)
tree4fad89ce2467ab0f82c19599c98fc44d916662de /tools/c_rehash.in
parent36757b4438acba4c46046970785c1e9a8f16d798 (diff)
downloadopenssl-new-caa4f47f615e801127013dd5689a2fa9314c536a.tar.gz
Oh, there were *two* places where we needed to protect the file
name...
Diffstat (limited to 'tools/c_rehash.in')
-rw-r--r--tools/c_rehash.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index c2e7d67f3b..c480dff3ad 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -131,7 +131,8 @@ sub link_hash_cert {
sub link_hash_crl {
my $fname = $_[0];
- my ($hash, $fprint) = `$openssl crl -hash -fingerprint -noout -in "$fname"`;
+ $fname =~ s/'/'\\''/g;
+ my ($hash, $fprint) = `$openssl crl -hash -fingerprint -noout -in '$fname'`;
chomp $hash;
chomp $fprint;
$fprint =~ s/^.*=//;