Commit 796f5eea authored by Aaron Walker's avatar Aaron Walker Committed by walkafwalka

Fix plugin tar extract permissions

Signed-off-by: 's avatarAaron Walker <2865898-walkafwalka@users.noreply.gitlab.com>
parent f0218d00
...@@ -195,7 +195,7 @@ func (g *TarGzExtractor) Extract(buffer *bytes.Buffer, targetDir string) error { ...@@ -195,7 +195,7 @@ func (g *TarGzExtractor) Extract(buffer *bytes.Buffer, targetDir string) error {
return err return err
} }
case tar.TypeReg: 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 { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment