summaryrefslogtreecommitdiff
path: root/lib/pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r--lib/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb
index 7bd007a2c8..9ececcb074 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -123,7 +123,7 @@ class Pathname
resolved.unshift unresolved.pop
else
path = top + unresolved.join('/')
- if FileTest.symlink? path
+ if File.lstat(path).symlink?
link = File.readlink(path)
if %r{\A/} =~ link
top = '/'