瀏覽代碼

- Builder: Create directories with 755 instead of 700 within ADD instruction

Guillaume J. Charmes 12 年之前
父節點
當前提交
b15cfd3530
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      buildfile.go

+ 1 - 1
buildfile.go

@@ -242,7 +242,7 @@ func (b *buildFile) addContext(container *Container, orig, dest string) error {
 	} else if err := UntarPath(origPath, destPath); err != nil {
 		utils.Debugf("Couldn't untar %s to %s: %s", origPath, destPath, err)
 		// If that fails, just copy it as a regular file
-		if err := os.MkdirAll(path.Dir(destPath), 0700); err != nil {
+		if err := os.MkdirAll(path.Dir(destPath), 0755); err != nil {
 			return err
 		}
 		if err := CopyWithTar(origPath, destPath); err != nil {