summaryrefslogtreecommitdiff
path: root/tools/c_rehash.in
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-06-13 19:59:40 +0000
committerRichard Levitte <levitte@openssl.org>2002-06-13 19:59:40 +0000
commit127dca46a07850204f1432ec6998923eebc341b1 (patch)
tree67f2d557dabfd2802a6b85ca43d1e85976e56c4a /tools/c_rehash.in
parente888074bb479dc2e05659d1b252121faad04b5d9 (diff)
downloadopenssl-new-127dca46a07850204f1432ec6998923eebc341b1.tar.gz
Check for the executable $openssl, not just the file.
Part of PR: 75
Diffstat (limited to 'tools/c_rehash.in')
-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;
}