commit | 127dca46a07850204f1432ec6998923eebc341b1 | [log] [tgz] |
---|---|---|
author | Richard Levitte <levitte@openssl.org> | Thu Jun 13 19:59:40 2002 +0000 |
committer | Richard Levitte <levitte@openssl.org> | Thu Jun 13 19:59:40 2002 +0000 |
tree | 67f2d557dabfd2802a6b85ca43d1e85976e56c4a | |
parent | e888074bb479dc2e05659d1b252121faad04b5d9 [diff] |
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; }