summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-06-10 08:13:52 +0000
committerRalf S. Engelschall <rse@openssl.org>1999-06-10 08:13:52 +0000
commit9d9b559ef03e481d2feec5a3a9a28f4a41f8189a (patch)
tree3083eb734b4f81c174a1c1b1b06503889fd61d68 /Configure
parent06018c4685c6da61b3efd59aabb1ab7be8d3a552 (diff)
Fix determination of Perl interpreter: A perl or perl5
_directory_ in $PATH was also accepted as the interpreter.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index 4c104dd009..627174200a 100755
--- a/Configure
+++ b/Configure
@@ -753,7 +753,7 @@ sub which
my $path;
foreach $path (split /:/, $ENV{PATH})
{
- if (-x "$path/$name")
+ if (-f "$path/$name" and -x _)
{
return "$path/$name" unless ($name eq "perl" and
system("$path/$name -e " . '\'exit($]<5.0);\''));