From 796f5eea85e47347709e024daeff5b3c3e7111f0 Mon Sep 17 00:00:00 2001 From: Aaron Walker <2865898-walkafwalka@users.noreply.gitlab.com> Date: Sun, 10 Mar 2019 16:18:09 -0700 Subject: [PATCH] Fix plugin tar extract permissions Signed-off-by: Aaron Walker <2865898-walkafwalka@users.noreply.gitlab.com> --- pkg/plugin/installer/http_installer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plugin/installer/http_installer.go b/pkg/plugin/installer/http_installer.go index fd58b88ca..4561a542e 100644 --- a/pkg/plugin/installer/http_installer.go +++ b/pkg/plugin/installer/http_installer.go @@ -195,7 +195,7 @@ func (g *TarGzExtractor) Extract(buffer *bytes.Buffer, targetDir string) error { return err } case tar.TypeReg: - outFile, err := os.Create(path) + outFile, err := os.OpenFile(path, os.O_CREATE|os.O_RDWR, os.FileMode(header.Mode)) if err != nil { return err }