aboutsummaryrefslogtreecommitdiff
path: root/openssl/util/mklink.pl
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-03-29 17:08:02 +0000
committermarha <marha@users.sourceforge.net>2010-03-29 17:08:02 +0000
commit15272ab4ed1e6250412fccd48200ed9eae59608f (patch)
treea5996ea67966a778a16565f19dfc2e7c7f49b376 /openssl/util/mklink.pl
parent3827301b2ea5a45ac009c3bf9f08586ff40b8506 (diff)
downloadvcxsrv-15272ab4ed1e6250412fccd48200ed9eae59608f.tar.gz
vcxsrv-15272ab4ed1e6250412fccd48200ed9eae59608f.tar.bz2
vcxsrv-15272ab4ed1e6250412fccd48200ed9eae59608f.zip
Updated to openssl 1.0.0
Diffstat (limited to 'openssl/util/mklink.pl')
-rw-r--r--openssl/util/mklink.pl13
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) {