diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-15 14:50:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-15 14:50:14 +0000 |
commit | b30b46d139f697fdd9d403345b47b5b867e236f2 (patch) | |
tree | 56c2fbcfc166534deb69c224db487ef424e47e25 /lib | |
parent | b640a8ed189177fef503f6ba595bd33bba41dc27 (diff) |
* lib/find.rb (Find::find): should not ignore symbolic links to
non-existing files. [ruby-talk:165866]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/find.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/find.rb b/lib/find.rb index 52efde81fd..0d22dd62d6 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -36,8 +36,8 @@ module Find paths.collect!{|d| d.dup} while file = paths.shift catch(:prune) do - next unless File.exist? file yield file.dup.taint + next unless File.exist? file begin if File.lstat(file).directory? then d = Dir.open(file) @@ -57,7 +57,7 @@ module Find d.close end end - rescue Errno::ENOENT, Errno::EACCES + rescue Errno::ENOENT, Errno::EACCES end end end |