Check for the executable $openssl, not just the file.
authorRichard Levitte <levitte@openssl.org>
Thu, 13 Jun 2002 19:59:26 +0000 (19:59 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 13 Jun 2002 19:59:26 +0000 (19:59 +0000)
Part of PR: 75

tools/c_rehash.in

index 69da98ff2cf2e71e58b5f2b26624696a084c8e43..5b053406c2db48eebd18751ee525f35221a52ba5 100644 (file)
@@ -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;
                }