diff options
Diffstat (limited to 'openssl/util/mklink.pl')
-rw-r--r-- | openssl/util/mklink.pl | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/openssl/util/mklink.pl b/openssl/util/mklink.pl index eacc32788..61db12c68 100644 --- a/openssl/util/mklink.pl +++ b/openssl/util/mklink.pl @@ -15,21 +15,13 @@ # Apart from this, this script should be able to handle even the most # pathological cases. -my $pwd; -eval 'use Cwd;'; -if ($@) - { - $pwd = `pwd`; - } -else - { - $pwd = getcwd(); - } +use Cwd; my $from = shift; my @files = @ARGV; my @from_path = split(/[\\\/]/, $from); +my $pwd = getcwd(); chomp($pwd); my @pwd_path = split(/[\\\/]/, $pwd); @@ -59,6 +51,7 @@ my $to = join('/', @to_path); my $file; $symlink_exists=eval {symlink("",""); 1}; +if ($^O eq "msys") { $symlink_exists=0 }; foreach $file (@files) { my $err = ""; if ($symlink_exists) { |