Skip to content

Commit 14f7e52

Browse files
committed
Unpack should set 0755 when the parent directory doesn't exist.
Signed-off-by: Lantao Liu <[email protected]>
1 parent 543ee8e commit 14f7e52

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)