A platform for community discussion. Free, open, simple.
DEV: Work around a Docker issue (#13368)
Jarek Radosz091beaf4a222
diff --git a/lib/freedom_patches/copy_file.rb b/lib/freedom_patches/copy_file.rbnew file mode 100644index 00000000000..3a411b88d36--- /dev/null+++ b/lib/freedom_patches/copy_file.rb@@ -0,0 +1,18 @@+# frozen_string_literal: true++require "fileutils"++# See: https://github.com/docker/for-linux/issues/1015++module FileUtils+ class Entry_+ def copy_file(dest)+ File.open(path()) do |s|+ File.open(dest, "wb", s.stat.mode) do |f|+ IO.copy_stream(s, f)+ f.chmod(f.lstat.mode)+ end+ end+ end+ end+end