Use getcwd() to get the directory, which works even if one of the

directory components doesn't have read permission set.
This commit is contained in:
Dan Fandrich 2007-12-20 21:21:43 +00:00
parent c3a02f5407
commit d639ed1aaf

View File

@ -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") {