From 2d968951227acd422f0e712035de3216d47fc980 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 24 Feb 2021 14:14:08 +0100 Subject: Fix filename escaping in c_rehash CLA: trivial Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/14301) --- tools/c_rehash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/c_rehash.in b/tools/c_rehash.in index ad72b51cfe..3e2e9c0f52 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; -- cgit v1.2.3