Commit 127dca46 authored by Richard Levitte's avatar Richard Levitte
Browse files

Check for the executable $openssl, not just the file.

Part of PR: 75
parent e888074b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,10 +17,10 @@ if(defined $ENV{OPENSSL}) {

$ENV{PATH} .= ":$dir/bin";

if(! -f $openssl) {
if(! -x $openssl) {
	my $found = 0;
	foreach (split /:/, $ENV{PATH}) {
		if(-f "$_/$openssl") {
		if(-x "$_/$openssl") {
			$found = 1;
			last;
		}