From: Mark Date: Wed, 24 Feb 2021 13:14:08 +0000 (+0100) Subject: Fix filename escaping in c_rehash X-Git-Tag: OpenSSL_1_1_1k~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a6e6b1f94ae41e2fd73483464c9c80ddcf30d17;p=thirdparty%2Fopenssl.git 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) (cherry picked from commit 2d968951227acd422f0e712035de3216d47fc980) --- diff --git a/tools/c_rehash.in b/tools/c_rehash.in index 421fd892086..d97cab0ed5e 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;