From 2aeccdd3bb98760ab10e834c6c134bb76f664910 Mon Sep 17 00:00:00 2001 From: Alexey Kotlyarov Date: Tue, 4 Mar 2014 14:45:14 +1100 Subject: [PATCH] Create directories for tar files with relaxed permissions Docker-DCO-1.1-Signed-off-by: Alexey Kotlyarov (github: koterpillar) --- archive/archive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/archive.go b/archive/archive.go index 72bd31a281..c15a9d153b 100644 --- a/archive/archive.go +++ b/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 }