From 5f652716ca9d49cc1b89525b4c877d0bd426da91 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 26 Nov 2011 15:18:05 +0000 Subject: [PATCH] * io.c (copy_stream_body): use 0666 for permission argument for open. [ruby-core:40865] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ io.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b7aa9e1ce4..c36a98bf36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Nov 27 00:16:07 2011 Tanaka Akira + + * io.c (copy_stream_body): use 0666 for permission argument for open. + [ruby-core:40865] + Sat Nov 26 23:01:38 2011 Martin Bosslet * test/openssl/test_engine.rb: remove side effect of generic engine diff --git a/io.c b/io.c index 07b38c5c40..1a3e7523ef 100644 --- a/io.c +++ b/io.c @@ -9569,7 +9569,7 @@ copy_stream_body(VALUE arg) FilePathValue(stp->dst); args[0] = stp->dst; args[1] = INT2NUM(oflags); - args[2] = INT2FIX(0600); + args[2] = INT2FIX(0666); dst_io = rb_class_new_instance(3, args, rb_cFile); stp->dst = dst_io; stp->close_dst = 1;