diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/util/mklink.pl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/libcrypto/util/mklink.pl b/src/lib/libcrypto/util/mklink.pl index d9bc98aab8..eacc327882 100644 --- a/src/lib/libcrypto/util/mklink.pl +++ b/src/lib/libcrypto/util/mklink.pl | |||
@@ -15,13 +15,21 @@ | |||
15 | # Apart from this, this script should be able to handle even the most | 15 | # Apart from this, this script should be able to handle even the most |
16 | # pathological cases. | 16 | # pathological cases. |
17 | 17 | ||
18 | use Cwd; | 18 | my $pwd; |
19 | eval 'use Cwd;'; | ||
20 | if ($@) | ||
21 | { | ||
22 | $pwd = `pwd`; | ||
23 | } | ||
24 | else | ||
25 | { | ||
26 | $pwd = getcwd(); | ||
27 | } | ||
19 | 28 | ||
20 | my $from = shift; | 29 | my $from = shift; |
21 | my @files = @ARGV; | 30 | my @files = @ARGV; |
22 | 31 | ||
23 | my @from_path = split(/[\\\/]/, $from); | 32 | my @from_path = split(/[\\\/]/, $from); |
24 | my $pwd = getcwd(); | ||
25 | chomp($pwd); | 33 | chomp($pwd); |
26 | my @pwd_path = split(/[\\\/]/, $pwd); | 34 | my @pwd_path = split(/[\\\/]/, $pwd); |
27 | 35 | ||