Commit a8ba005a authored by walkafwalka's avatar walkafwalka

Add umask before tarball creation

Signed-off-by: 's avatarwalkafwalka <2865898-walkafwalka@users.noreply.gitlab.com>
parent 7eb7567e
......@@ -25,6 +25,7 @@ import (
"k8s.io/helm/pkg/helm/helmpath"
"os"
"path/filepath"
"syscall"
"testing"
)
......@@ -213,6 +214,8 @@ func TestExtract(t *testing.T) {
//{"README.md", "so you know what's upp"},
//{"script.sh", "echo script"},
syscall.Umask(0000)
var tarbuf bytes.Buffer
tw := tar.NewWriter(&tarbuf)
var files = []struct {
......
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