From: Richard Levitte Date: Thu, 13 Jun 2002 19:59:26 +0000 (+0000) Subject: Check for the executable $openssl, not just the file. X-Git-Tag: OpenSSL_0_9_7-beta2~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ff3dd003703d2e4930637fccf7bfa828ab2d8f0f;p=oweals%2Fopenssl.git Check for the executable $openssl, not just the file. Part of PR: 75 --- 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; }