* lib/find.rb (Find.find): get rid of race condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
779aba2d01
commit
0d9340f223
@ -1,3 +1,7 @@
|
||||
Tue Dec 15 09:06:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/find.rb (Find.find): get rid of race condition.
|
||||
|
||||
Mon Dec 14 22:33:21 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/find.rb (Find.find): rescue only ENOENT and EACCES for lstat.
|
||||
|
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user