summaryrefslogtreecommitdiff
path: root/tools/c_rehash.in
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-11 20:31:27 +0000
committerRichard Levitte <levitte@openssl.org>2002-10-11 20:31:27 +0000
commit56b5f687e4f22fb19b885212f960f01deb085ccc (patch)
tree94009fbd0fb36cc82d28496a18df5c4b6ef52a06 /tools/c_rehash.in
parentcaa4f47f615e801127013dd5689a2fa9314c536a (diff)
downloadopenssl-new-56b5f687e4f22fb19b885212f960f01deb085ccc.tar.gz
And if the path has a space, we definitely need to protect $openssl.
Diffstat (limited to 'tools/c_rehash.in')
-rw-r--r--tools/c_rehash.in4
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/^.*=//;