1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

make-snapshot: fixed mode

"X" must be used in conjunction with "+".
This commit is contained in:
Nobuyoshi Nakada 2019-12-23 10:10:23 +09:00
parent 80d5d220b9
commit 5f18635a80
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -316,7 +316,7 @@ def package(vcs, rev, destdir, tmp = nil)
FileUtils.mkpath(File.dirname(dest))
begin
FileUtils.cp_r(file, dest)
FileUtils.chmod_R("u=rwX,go=rX", dest)
FileUtils.chmod_R("a+rwX,go-w", dest)
rescue SystemCallError
end
end