diff options
Diffstat (limited to 'lib/find.rb')
-rw-r--r-- | lib/find.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/find.rb b/lib/find.rb index 3f54cf6b93..9bee99c66d 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -49,14 +49,14 @@ module Find yield file.dup begin s = File.lstat(file) - rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG + rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG, Errno::EINVAL raise unless ignore_error next end if s.directory? then begin fs = Dir.children(file, encoding: enc) - rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG + rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG, Errno::EINVAL raise unless ignore_error next end |