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

tools/c_rehash.in

index 69da98f..5b05340 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;
                }