From: Dr. Stephen Henson Date: Fri, 3 Feb 2006 23:55:26 +0000 (+0000) Subject: Use getcwd() because it works under MSYS but `pwd` doesn't. X-Git-Tag: OpenSSL_FIPS_1_0~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b1971b067afe773775db775caa1342467b5209b9;p=oweals%2Fopenssl.git Use getcwd() because it works under MSYS but `pwd` doesn't. --- diff --git a/util/mklink.pl b/util/mklink.pl index c8653cecc3..182732d959 100755 --- a/util/mklink.pl +++ b/util/mklink.pl @@ -14,13 +14,16 @@ # not contain symbolic links and that the parent of / is never referenced. # Apart from this, this script should be able to handle even the most # pathological cases. +# + +use Cwd; my $from = shift; my @files = @ARGV; my @from_path = split(/[\\\/]/, $from); -my $pwd = `pwd`; -chop($pwd); +my $pwd = getcwd(); +chomp($pwd); my @pwd_path = split(/[\\\/]/, $pwd); my @to_path = ();