From 41cd36b8306a7684898102acf8cf6d2233ed6a82 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 24 Mar 2004 10:52:21 +0000 Subject: 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) --- tests/testcurl.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/testcurl.pl b/tests/testcurl.pl index bc2b9069b..0d9a1428e 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"; -- cgit v1.2.3