Quellcode durchsuchen

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 vor 11 Jahren
Ursprung
Commit
2aeccdd3bb
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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
 				}