diff options
author | Richard Levitte <levitte@openssl.org> | 2002-10-11 20:31:27 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-10-11 20:31:27 +0000 |
commit | 56b5f687e4f22fb19b885212f960f01deb085ccc (patch) | |
tree | 94009fbd0fb36cc82d28496a18df5c4b6ef52a06 /tools | |
parent | caa4f47f615e801127013dd5689a2fa9314c536a (diff) |
And if the path has a space, we definitely need to protect $openssl.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/c_rehash.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in index c480dff3ad..4497cbd9f1 100644 --- a/tools/c_rehash.in +++ b/tools/c_rehash.in @@ -101,7 +101,7 @@ sub check_file { sub link_hash_cert { my $fname = $_[0]; $fname =~ s/'/'\\''/g; - my ($hash, $fprint) = `$openssl x509 -hash -fingerprint -noout -in '$fname'`; + my ($hash, $fprint) = `"$openssl" x509 -hash -fingerprint -noout -in '$fname'`; chomp $hash; chomp $fprint; $fprint =~ s/^.*=//; @@ -132,7 +132,7 @@ sub link_hash_cert { sub link_hash_crl { my $fname = $_[0]; $fname =~ s/'/'\\''/g; - my ($hash, $fprint) = `$openssl crl -hash -fingerprint -noout -in '$fname'`; + my ($hash, $fprint) = `"$openssl" crl -hash -fingerprint -noout -in '$fname'`; chomp $hash; chomp $fprint; $fprint =~ s/^.*=//; |