From ff3dd003703d2e4930637fccf7bfa828ab2d8f0f Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 13 Jun 2002 19:59:26 +0000 Subject: [PATCH] Check for the executable $openssl, not just the file. Part of PR: 75 --- tools/c_rehash.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/c_rehash.in b/tools/c_rehash.in index 69da98ff2c..5b053406c2 100644 --- a/tools/c_rehash.in +++ b/tools/c_rehash.in @@ -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; } -- 2.25.1