about summary refs log tree commit homepage
path: root/lib/mogilefs/copy_stream.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mogilefs/copy_stream.rb')
-rw-r--r--lib/mogilefs/copy_stream.rb2
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