From 829a44822d5e3fd4457f44c401d82eb14c52c8e9 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 13 Feb 2004 16:03:15 +0000 Subject: * re.c (KR_REHASH): wrong hash value on sizeof(long) > sizeof(int). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/find.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/find.rb') diff --git a/lib/find.rb b/lib/find.rb index e94d5c2c70..52efde81fd 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -36,8 +36,8 @@ module Find paths.collect!{|d| d.dup} while file = paths.shift catch(:prune) do - yield file.dup - file.untaint + next unless File.exist? file + yield file.dup.taint begin if File.lstat(file).directory? then d = Dir.open(file) @@ -51,7 +51,7 @@ module Find else f = File.join(file, f) end - paths.unshift f + paths.unshift f.untaint end ensure d.close -- cgit v1.2.1