diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-11-26 19:31:49 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-11-26 19:31:49 +0000 |
commit | bc9dc23cc4552fe46f0473cf208169c41e6892aa (patch) | |
tree | cf95a6f26f94061f362d397b223aee7198247177 | |
parent | d806fa67899e697a2d399eff0553e9c3b60e484e (diff) | |
download | mogilefs-client-bc9dc23cc4552fe46f0473cf208169c41e6892aa.tar.gz |
This matches the latest IO.copy_stream behavior. [ruby-core:41308], r33851 in ruby/trunk
-rw-r--r-- | lib/mogilefs/copy_stream.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mogilefs/copy_stream.rb b/lib/mogilefs/copy_stream.rb index d49112a..f50bf08 100644 --- a/lib/mogilefs/copy_stream.rb +++ b/lib/mogilefs/copy_stream.rb @@ -3,7 +3,7 @@ # internal compatibility class for older Rubies module MogileFS::CopyStream # :nodoc: @r_args = IO::RDONLY | IO::NOCTTY - @w_args = [ IO::WRONLY|IO::CREAT|IO::NOCTTY|IO::TRUNC, 0600 ] + @w_args = [ IO::WRONLY|IO::CREAT|IO::NOCTTY|IO::TRUNC, 0666 ] def self.copy_stream(src, dst) src_io = src.respond_to?(:to_str) ? File.open(src, @r_args) : src dst_io = dst.respond_to?(:to_str) ? File.open(dst, *@w_args) : dst |