Skip to content

Commit 782dd89

Browse files
authored
Merge pull request #3038 from Random-Liu/cherrypick-#3018-release-1.2
[release/1.2] Unpack should set 0755 when the parent directory doesn't exist.
2 parents e6b3f56 + 9899aca commit 782dd89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

archive/tar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func applyNaive(ctx context.Context, root string, tr *tar.Reader, options ApplyO
194194
parentPath = filepath.Dir(path)
195195
}
196196
if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
197-
err = mkdirAll(parentPath, 0700)
197+
err = mkdirAll(parentPath, 0755)
198198
if err != nil {
199199
return 0, err
200200
}

0 commit comments

Comments
 (0)