summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-15 00:06:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-15 00:06:36 +0000
commitebe2e377524b26713deaa18683ab8b4b757468f5 (patch)
tree11240cb985bfc789787607cbec55e63d0c14b297 /lib
parent4ee13b622f4293d4041cf70cb09cfc8757b8a4c5 (diff)
downloadruby-ebe2e377524b26713deaa18683ab8b4b757468f5.tar.gz
ruby-ebe2e377524b26713deaa18683ab8b4b757468f5.tar.xz
ruby-ebe2e377524b26713deaa18683ab8b4b757468f5.zip
* lib/find.rb (Find.find): get rid of race condition.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/find.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/find.rb b/lib/find.rb
index 2b2864cb3..c9fee921f 100644
--- a/lib/find.rb
+++ b/lib/find.rb
@@ -47,7 +47,7 @@ module Find
if s.directory? then
begin
fs = Dir.entries(file)
- rescue Errno::ENOENT, Errno::EACCES
+ rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR
next
end
fs.sort!