Browse Source

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 years ago
parent
commit
2aeccdd3bb
1 changed files with 1 additions and 1 deletions
  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)
 			parent := filepath.Dir(hdr.Name)
 			parentPath := filepath.Join(dest, parent)
 			parentPath := filepath.Join(dest, parent)
 			if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
 			if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
-				err = os.MkdirAll(parentPath, 600)
+				err = os.MkdirAll(parentPath, 0777)
 				if err != nil {
 				if err != nil {
 					return err
 					return err
 				}
 				}