diff options
author | Richard Levitte <levitte@openssl.org> | 2002-06-13 21:59:40 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-06-13 21:59:40 +0200 |
commit | 127dca46a07850204f1432ec6998923eebc341b1 (patch) | |
tree | 67f2d557dabfd2802a6b85ca43d1e85976e56c4a /tools/c_rehash.in | |
parent | Parse directory using both slashes and backslashes as separators. (diff) | |
download | openssl-127dca46a07850204f1432ec6998923eebc341b1.tar.xz openssl-127dca46a07850204f1432ec6998923eebc341b1.zip |
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.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; } |