diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-30 09:36:41 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-30 09:36:41 +0000 |
commit | a607c82efe3be64a1822ca70ebdcb45cfd5000d2 (patch) | |
tree | 68dd6036eca5931bd9c70030d9df7bfbe1a1c6cd /lib | |
parent | c1f9b6b5159d4c40031ed7d6d3dea4dc6deef5a5 (diff) | |
download | ruby-a607c82efe3be64a1822ca70ebdcb45cfd5000d2.tar.gz ruby-a607c82efe3be64a1822ca70ebdcb45cfd5000d2.tar.xz ruby-a607c82efe3be64a1822ca70ebdcb45cfd5000d2.zip |
* io.c (READ_DATA_BUFFERED): new macro to detect whether stdio
buffer filled.
* io.c (rb_io_fptr_cleanup): move path deallocation to
rb_io_fptr_finalize (finalizer called by GC).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fileutils.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index dfec5f900..e65033f9b 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -399,9 +399,10 @@ module FileUtils # def copy_file( src, dest ) File.open(src, 'rb') {|r| - File.open(dest, 'wb') {|w| + File.open(dest, 'wb') {|w| copy_stream r, w - } } + } + } end # |