1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/fileutils.rb (cmp): return false if file size differs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2002-12-28 20:11:35 +00:00
parent 2672d0cc28
commit 4a1c7e5f6d
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Dec 29 05:08:13 2002 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/fileutils.rb (cmp): return false if file size differs.
Sat Dec 28 19:21:24 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* instruby.rb: remove junk args.

View file

@ -564,7 +564,7 @@ module FileUtils
sa = sb = nil
st = File.stat(filea)
bsize = fu_blksize(st.blksize)
return true unless File.size(fileb) == st.size
return false unless File.size(fileb) == st.size
File.open(filea, 'rb') {|a|
File.open(fileb, 'rb') {|b|