[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>

I would like to request developers meeting around April 17 or 18 in this mo=

14 messages 2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014 — Urabe Shyouhei <shyouhei@...> 2014/04/03

It's good if we have a meeting then.

[#61826] Re: Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...> 2014/04/03

Regarding openssl issues, I=E2=80=99ve discussed possible meeting time with=

[#61833] Re: Plan Developers Meeting Japan April 2014 — Martin Bo煬et <martin.bosslet@...> 2014/04/03

Hi,

[ruby-core:62065] [ruby-trunk - Bug #9748] FileUtils.cp always preserve the permission of original files

From: wei1.hu@...
Date: 2014-04-17 00:02:22 UTC
List: ruby-core #62065
Issue #9748 has been updated by Wei Hu.


Thanks,Nobuyoshi. I wondered that also. However, If so, the behavior is different from ruby 2.1.1's document. Also, :preserve=>true or :perserve=>false makes no difference. Is it expected?

----------------------------------------
Bug #9748: FileUtils.cp always preserve the permission of original files
https://bugs.ruby-lang.org/issues/9748#change-46239

* Author: Wei Hu
* Status: Rejected
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
`FileUtils.cp` will always preserve the permission of original files even if we passed `:preserve=>false`.

I think the problem is because:

~~~diff
<         File.open(dest, 'wb') do |f|
---
>         File.open(dest, 'wb', s.stat.mode) do |f|
~~~




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next