From fb4db02586432aaa7a61830a020d605ec537b8d2 Mon Sep 17 00:00:00 2001 From: Sander Saares Date: Sat, 2 Sep 2017 15:06:04 +0300 Subject: [PATCH] Copy/link permissions 0777 -> 0755 Previous permission flags were unusually permissive. Almost everything else in Packer uses 0755. --- post-processor/vagrant/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post-processor/vagrant/util.go b/post-processor/vagrant/util.go index 8c6e09b50..de80912bb 100644 --- a/post-processor/vagrant/util.go +++ b/post-processor/vagrant/util.go @@ -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 }