mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
be1de4f8db
commit
829a44822d
6 changed files with 35 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue