From 14f7e52725d88a0494ce6e12176eaf150569cf9a Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Wed, 13 Feb 2019 18:27:08 -0800 Subject: [PATCH] Unpack should set 0755 when the parent directory doesn't exist. Signed-off-by: Lantao Liu --- archive/tar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/tar.go b/archive/tar.go index 0d9e0e750..fae023c55 100644 --- a/archive/tar.go +++ b/archive/tar.go @@ -194,7 +194,7 @@ func applyNaive(ctx context.Context, root string, tr *tar.Reader, options ApplyO parentPath = filepath.Dir(path) } if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) { - err = mkdirAll(parentPath, 0700) + err = mkdirAll(parentPath, 0755) if err != nil { return 0, err }