浏览代码

Create directories for tar files with relaxed permissions

Docker-DCO-1.1-Signed-off-by: Alexey Kotlyarov <alexey@infoxchange.net.au> (github: koterpillar)
Alexey Kotlyarov 11 年之前
父节点
当前提交
2aeccdd3bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      archive/archive.go

+ 1 - 1
archive/archive.go

@@ -403,7 +403,7 @@ func Untar(archive io.Reader, dest string, options *TarOptions) error {
 			parent := filepath.Dir(hdr.Name)
 			parentPath := filepath.Join(dest, parent)
 			if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
-				err = os.MkdirAll(parentPath, 600)
+				err = os.MkdirAll(parentPath, 0777)
 				if err != nil {
 					return err
 				}