From: Dan Fandrich Date: Thu, 20 Dec 2007 21:21:43 +0000 (+0000) Subject: Use getcwd() to get the directory, which works even if one of the X-Git-Tag: curl-7_18_0~142 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d639ed1aafe33905b800dbf0c858630352576a01;p=thirdparty%2Fcurl.git Use getcwd() to get the directory, which works even if one of the directory components doesn't have read permission set. --- diff --git a/tests/testcurl.pl b/tests/testcurl.pl index b7828d32a7..e726478e11 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -294,7 +294,7 @@ $str1066os = undef; # Make $pwd to become the path without newline. We'll use that in order to cut # off that path from all possible logs and error messages etc. -$pwd = cwd(); +$pwd = getcwd(); if (-d $CURLDIR) { if ($CVS && -d "$CURLDIR/CVS") {