summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMark <mark@asx.hu>2021-02-24 14:14:08 +0100
committerPauli <ppzgs1@gmail.com>2021-02-26 10:04:36 +1000
commit3a6e6b1f94ae41e2fd73483464c9c80ddcf30d17 (patch)
tree239d5973c3e0e865cd0c12a3fdef8e6279ac2235 /tools
parent1102187a71f6aa8f72daf46c5d543c261b90c83b (diff)
Fix filename escaping in c_rehash
CLA: trivial Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14301) (cherry picked from commit 2d968951227acd422f0e712035de3216d47fc980)
Diffstat (limited to 'tools')
-rw-r--r--tools/c_rehash.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 421fd89208..d97cab0ed5 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -161,7 +161,7 @@ sub check_file {
sub link_hash_cert {
my $fname = $_[0];
- $fname =~ s/'/'\\''/g;
+ $fname =~ s/\"/\\\"/g;
my ($hash, $fprint) = `"$openssl" x509 $x509hash -fingerprint -noout -in "$fname"`;
chomp $hash;
chomp $fprint;