mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 01:04:00 -04:00
Copy/link permissions 0777 -> 0755
Previous permission flags were unusually permissive. Almost everything else in Packer uses 0755.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user