From: Richard Levitte Date: Thu, 13 Jun 2002 19:59:40 +0000 (+0000) Subject: Check for the executable $openssl, not just the file. X-Git-Tag: OpenSSL_0_9_6e~26^2~70 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=127dca46a07850204f1432ec6998923eebc341b1;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; }