aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-12-20 21:21:43 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-12-20 21:21:43 +0000
commitd639ed1aafe33905b800dbf0c858630352576a01 (patch)
tree844c8b38fa4744b922f9af5d88df5cb955c5f009
parentc3a02f54074c59ec043bc9c6fd31785d61e6d426 (diff)
Use getcwd() to get the directory, which works even if one of the
directory components doesn't have read permission set.
-rwxr-xr-xtests/testcurl.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index b7828d32a..e726478e1 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") {