[前][次][番号順一覧][スレッド一覧]

ruby-changes:49496

From: normal <ko1@a...>
Date: Fri, 5 Jan 2018 18:41:27 +0900 (JST)
Subject: [ruby-changes:49496] normal:r61611 (trunk): tool/rbinstall.rb: allow owner to have write permissions

normal	2018-01-05 18:41:21 +0900 (Fri, 05 Jan 2018)

  New Revision: 61611

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61611

  Log:
    tool/rbinstall.rb: allow owner to have write permissions
    
    Denying write permissions to the owner seems wrong.
    
    Oddly, this problem only manifests in the "ruby_2_4" branch when
    installing bundled gems (rake and friends).  It does not happen
    with "ruby_2_3", or "trunk", so it might be related to RubyGems
    changes.
    
    * tool/rbinstall.rb: set umask to 022
      [ruby-core:84420] [Bug #14227]

  Modified files:
    trunk/tool/rbinstall.rb
Index: tool/rbinstall.rb
===================================================================
--- tool/rbinstall.rb	(revision 61610)
+++ tool/rbinstall.rb	(revision 61611)
@@ -30,7 +30,7 @@ end https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L30
 
 INDENT = " "*36
 STDOUT.sync = true
-File.umask(0222)
+File.umask(022)
 
 def parse_args(argv = ARGV)
   $mantype = 'doc'

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]