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"
"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 {

Loading…
Cancel
Save