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.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=127dca46a07850204f1432ec6998923eebc341b1;hp=e888074bb479dc2e05659d1b252121faad04b5d9 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; }