Merge pull request #3122 from cofyc/fix_charts_permission

Remove executable permission bit for charts downloaded from remote repos
pull/2926/merge
Matthew Fisher 7 years ago committed by GitHub
commit 1042f6118b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -93,7 +93,7 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven
name := filepath.Base(u.Path)
destfile := filepath.Join(dest, name)
if err := ioutil.WriteFile(destfile, data.Bytes(), 0655); err != nil {
if err := ioutil.WriteFile(destfile, data.Bytes(), 0644); err != nil {
return destfile, nil, err
}
@ -109,7 +109,7 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven
return destfile, ver, nil
}
provfile := destfile + ".prov"
if err := ioutil.WriteFile(provfile, body.Bytes(), 0655); err != nil {
if err := ioutil.WriteFile(provfile, body.Bytes(), 0644); err != nil {
return destfile, nil, err
}

Loading…
Cancel
Save