* 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
@ -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>
|
Mon Dec 14 21:49:30 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/find.rb (Find.find): narrow rescue region.
|
* lib/find.rb (Find.find): narrow rescue region.
|
||||||
|
@ -41,7 +41,7 @@ module Find
|
|||||||
yield file.dup.taint
|
yield file.dup.taint
|
||||||
begin
|
begin
|
||||||
s = File.lstat(file)
|
s = File.lstat(file)
|
||||||
rescue SystemCallError
|
rescue Errno::ENOENT, Errno::EACCES
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
if s.directory? then
|
if s.directory? then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user