From 779aba2d01f0cdef77fb34db0199397b67f5088b Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 14 Dec 2009 13:34:09 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ lib/find.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9eeec203f1..45939b6570 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Dec 14 22:33:21 2009 Tanaka Akira + + * lib/find.rb (Find.find): rescue only ENOENT and EACCES for lstat. + Mon Dec 14 21:49:30 2009 Tanaka Akira * lib/find.rb (Find.find): narrow rescue region. diff --git a/lib/find.rb b/lib/find.rb index 7727bbdbbc..2b2864cb34 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -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