Skip to content

Commit 9d16e2e

Browse files
authored
Merge pull request #3039 from Random-Liu/cherrypick-#3018-release-1.1
[release/1.1] Unpack should set 0755 when the parent directory doesn't exist.
2 parents 0ad902c + ee47545 commit 9d16e2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

archive/tar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func applyNaive(ctx context.Context, root string, tr *tar.Reader, options ApplyO
183183
parentPath = filepath.Dir(path)
184184
}
185185
if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
186-
err = mkdirAll(parentPath, 0700)
186+
err = mkdirAll(parentPath, 0755)
187187
if err != nil {
188188
return 0, err
189189
}

0 commit comments

Comments
 (0)