Copy/link permissions 0777 -> 0755

Previous permission flags were unusually permissive. Almost everything else in Packer uses 0755.
This commit is contained in:
Sander Saares 2017-09-02 15:06:04 +03:00
parent 0ebf1d0da9
commit fb4db02586
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ func CopyContents(dst, src string) error {
dstDir, _ := filepath.Split(dst)
if dstDir != "" {
err := os.MkdirAll(dstDir, os.ModePerm)
err := os.MkdirAll(dstDir, 0755)
if err != nil {
return err
}
@ -55,7 +55,7 @@ func CopyContents(dst, src string) error {
func LinkFile(dst, src string) error {
dstDir, _ := filepath.Split(dst)
if dstDir != "" {
err := os.MkdirAll(dstDir, os.ModePerm)
err := os.MkdirAll(dstDir, 0755)
if err != nil {
return err
}