mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/find.rb (Find::find): should not ignore symbolic links to
non-existing files. [ruby-talk:165866] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b640a8ed18
commit
b30b46d139
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 15 23:46:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/find.rb (Find::find): should not ignore symbolic links to
|
||||
non-existing files. [ruby-talk:165866]
|
||||
|
||||
Tue Nov 15 16:23:26 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* array.c (rb_ary_fill): previous commit disabled this usage:
|
||||
|
|
|
@ -36,8 +36,8 @@ module Find
|
|||
paths.collect!{|d| d.dup}
|
||||
while file = paths.shift
|
||||
catch(:prune) do
|
||||
next unless File.exist? file
|
||||
yield file.dup.taint
|
||||
next unless File.exist? file
|
||||
begin
|
||||
if File.lstat(file).directory? then
|
||||
d = Dir.open(file)
|
||||
|
@ -57,7 +57,7 @@ module Find
|
|||
d.close
|
||||
end
|
||||
end
|
||||
rescue Errno::ENOENT, Errno::EACCES
|
||||
rescue Errno::ENOENT, Errno::EACCES
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue