From: Daniel Stenberg Date: Wed, 24 Mar 2004 10:52:21 +0000 (+0000) Subject: Avoid doing chdir .., as it breaks the ability to use symlinks properly. X-Git-Tag: curl-7_11_2~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41cd36b8306a7684898102acf8cf6d2233ed6a82;p=thirdparty%2Fcurl.git Avoid doing chdir .., as it breaks the ability to use symlinks properly. chdir to absolute directory names instead. (this flaw exists in the shell version too) --- diff --git a/tests/testcurl.pl b/tests/testcurl.pl index bc2b9069b8..0d9a1428ef 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -299,7 +299,7 @@ if ($gnulikebuild) { } # change to build dir -chdir "../$build"; +chdir "$pwd/$build"; if ($gnulikebuild) { # run configure script @@ -347,7 +347,7 @@ if (grepfile("define USE_ARES", $gnulikebuild ? "lib/config.h" : "lib/config-win } # cd back to the curl build dir - chdir ".."; + chdir "$pwd/$build"; } logit "run make";