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 69da98f..5b05340 100644 --- a/tools/c_rehash.in +++ b/tools/c_rehash.in
@@ -17,10 +17,10 @@ $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; }