Skip to content

Commit 759a889

Browse files
Merge pull request #3018 from Random-Liu/perm-consistency-with-docker
Unpack should set 0755 when the parent directory doesn't exist.
2 parents 58dc067 + 14f7e52 commit 759a889

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
@@ -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)