summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/c_rehash.in4
1 files 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;
}