Add umask before tarball creation

Signed-off-by: walkafwalka <2865898-walkafwalka@users.noreply.gitlab.com>
pull/5428/head
walkafwalka 6 years ago
parent 7eb7567e6b
commit a8ba005aca

@ -25,6 +25,7 @@ import (
"k8s.io/helm/pkg/helm/helmpath" "k8s.io/helm/pkg/helm/helmpath"
"os" "os"
"path/filepath" "path/filepath"
"syscall"
"testing" "testing"
) )
@ -213,6 +214,8 @@ func TestExtract(t *testing.T) {
//{"README.md", "so you know what's upp"}, //{"README.md", "so you know what's upp"},
//{"script.sh", "echo script"}, //{"script.sh", "echo script"},
syscall.Umask(0000)
var tarbuf bytes.Buffer var tarbuf bytes.Buffer
tw := tar.NewWriter(&tarbuf) tw := tar.NewWriter(&tarbuf)
var files = []struct { var files = []struct {

Loading…
Cancel
Save