]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix filename escaping in c_rehash
authorMark <mark@asx.hu>
Wed, 24 Feb 2021 13:14:08 +0000 (14:14 +0100)
committerPauli <ppzgs1@gmail.com>
Fri, 26 Feb 2021 00:04:36 +0000 (10:04 +1000)
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)

tools/c_rehash.in

index 421fd892086f9344822e74e1ac8b5bd836364548..d97cab0ed5ec996c1b4a1f50e73f35794e510f99 100644 (file)
@@ -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;