Skip to content

Commit

Permalink
Merge pull request #3039 from Random-Liu/cherrypick-#3018-release-1.1
Browse files Browse the repository at this point in the history
[release/1.1] Unpack should set 0755 when the parent directory doesn't exist.
  • Loading branch information
estesp committed Feb 21, 2019
2 parents 0ad902c + ee47545 commit 9d16e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,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
}
Expand Down

0 comments on commit 9d16e2e

Please sign in to comment.