提交 56b5f687 编写于 作者: R Richard Levitte

And if the path has a space, we definitely need to protect $openssl.

上级 caa4f47f
......@@ -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/^.*=//;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册