diff options
Diffstat (limited to 'lib/find.rb')
-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 |