]> granicus.if.org Git - curl/commitdiff
Avoid doing chdir .., as it breaks the ability to use symlinks properly.
authorDaniel Stenberg <daniel@haxx.se>
Wed, 24 Mar 2004 10:52:21 +0000 (10:52 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 24 Mar 2004 10:52:21 +0000 (10:52 +0000)
chdir to absolute directory names instead. (this flaw exists in the shell
version too)

tests/testcurl.pl

index bc2b9069b87ac93b949faaba4fada2dedecc16a3..0d9a1428ef33767f165693fcd4f11bd42cb98b96 100755 (executable)
@@ -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";