mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/find.rb (Find.find): rescue only ENOENT and EACCES for lstat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92e9bf7a59
commit
779aba2d01
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Dec 14 22:33:21 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/find.rb (Find.find): rescue only ENOENT and EACCES for lstat.
|
||||
|
||||
Mon Dec 14 21:49:30 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/find.rb (Find.find): narrow rescue region.
|
||||
|
|
|
@ -41,7 +41,7 @@ module Find
|
|||
yield file.dup.taint
|
||||
begin
|
||||
s = File.lstat(file)
|
||||
rescue SystemCallError
|
||||
rescue Errno::ENOENT, Errno::EACCES
|
||||
next
|
||||
end
|
||||
if s.directory? then
|
||||
|
|
Loading…
Reference in a new issue