mirror of
https://github.com/openssl/openssl.git
synced 2024-11-24 10:34:12 +08:00
Check for the executable $openssl, not just the file.
Part of PR: 75
This commit is contained in:
parent
e888074bb4
commit
127dca46a0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user