ruby-changes:60190
From: V=C3=ADt <ko1@a...>
Date: Wed, 26 Feb 2020 11:05:10 +0900 (JST)
Subject: [ruby-changes:60190] b8a8fdba63 (master): Properly detect mode for binaries.
https://git.ruby-lang.org/ruby.git/commit/?id=b8a8fdba63 From b8a8fdba637589ff17f98cee4ea955667e3f0b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@r...> Date: Mon, 14 Oct 2019 18:28:37 +0200 Subject: Properly detect mode for binaries. .gemspec files specifies not just `bin`, but also other directories. diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index b6e75f9..5423920 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -721,7 +721,7 @@ module RbInstall https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L721 def extract_files(destination_dir, pattern = "*") return if @src_dir == destination_dir File.chmod(0700, destination_dir) - mode = pattern == "bin/*" ? prog_mode : data_mode + mode = pattern == File.join(spec.bindir, '*') ? prog_mode : data_mode spec.files.each do |f| src = File.join(@src_dir, f) dest = File.join(without_destdir(destination_dir), f) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/