Permalink
Browse files

Revert stdlib change for appengine

  • Loading branch information...
1 parent 4760d0a commit 3a3ae0f1c508233ddabe82805a900b2b3007fa1b @BanzaiMan BanzaiMan committed Apr 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ruby/1.8/pathname.rb
View
@@ -431,8 +431,8 @@ def realpath_rec(prefix, unresolved, h)
prefix, *resolved = h[path]
end
else
- s = File.lstat(path)
- if s.symlink?
+ # This check is JRuby-specific for accessing files inside a jar
+ if File.symlink?(path)
h[path] = :resolving
link_prefix, link_names = split_names(File.readlink(path))
if link_prefix == ''

0 comments on commit 3a3ae0f

Please sign in to comment.