Copy/link permissions 0777 -> 0755
Previous permission flags were unusually permissive. Almost everything else in Packer uses 0755.
This commit is contained in:
parent
0ebf1d0da9
commit
fb4db02586
|
@ -32,7 +32,7 @@ func CopyContents(dst, src string) error {
|
||||||
|
|
||||||
dstDir, _ := filepath.Split(dst)
|
dstDir, _ := filepath.Split(dst)
|
||||||
if dstDir != "" {
|
if dstDir != "" {
|
||||||
err := os.MkdirAll(dstDir, os.ModePerm)
|
err := os.MkdirAll(dstDir, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ func CopyContents(dst, src string) error {
|
||||||
func LinkFile(dst, src string) error {
|
func LinkFile(dst, src string) error {
|
||||||
dstDir, _ := filepath.Split(dst)
|
dstDir, _ := filepath.Split(dst)
|
||||||
if dstDir != "" {
|
if dstDir != "" {
|
||||||
err := os.MkdirAll(dstDir, os.ModePerm)
|
err := os.MkdirAll(dstDir, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue