Skip to content

Commit

Permalink
Fix filename escaping in c_rehash
Browse files Browse the repository at this point in the history
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 openssl#14301)
  • Loading branch information
mszabo authored and paulidale committed Feb 26, 2021
1 parent 1cba862 commit 2d96895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/c_rehash.in
Expand Up @@ -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;
Expand Down

0 comments on commit 2d96895

Please sign in to comment.