diff options
author | Richard Levitte <levitte@openssl.org> | 2002-06-13 19:59:40 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-06-13 19:59:40 +0000 |
commit | 127dca46a07850204f1432ec6998923eebc341b1 (patch) | |
tree | 67f2d557dabfd2802a6b85ca43d1e85976e56c4a /tools | |
parent | e888074bb479dc2e05659d1b252121faad04b5d9 (diff) |
Check for the executable $openssl, not just the file.
Part of PR: 75
Diffstat (limited to 'tools')
-rw-r--r-- | tools/c_rehash.in | 4 |
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; } |