summaryrefslogtreecommitdiff
path: root/lib/getcwd.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getcwd.pl')
-rw-r--r--lib/getcwd.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getcwd.pl b/lib/getcwd.pl
index 114e8905c6..a3214ba715 100644
--- a/lib/getcwd.pl
+++ b/lib/getcwd.pl
@@ -42,9 +42,9 @@ sub getcwd
closedir(getcwd'PARENT); #');
return '';
}
- unless (@tst = stat("$dotdots/$dir"))
+ unless (@tst = lstat("$dotdots/$dir"))
{
- warn "stat($dotdots/$dir): $!";
+ warn "lstat($dotdots/$dir): $!";
closedir(getcwd'PARENT); #');
return '';
}