diff --git a/tool/make-snapshot b/tool/make-snapshot index da312c3681..436863b185 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -288,14 +288,9 @@ def package(vcs, rev, destdir, tmp = nil) puts "copying #{file}" dest = exported + file[$srcdir.size..-1] FileUtils.mkpath(File.dirname(dest)) - begin - FileUtils.ln(file, dest, force: true) - next unless File.symlink?(dest) - File.unlink(dest) - rescue SystemCallError - end begin FileUtils.cp_r(file, dest) + FileUtils.chmod_R("u=rwX,go=rX", dest) rescue SystemCallError end end