Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9899aca

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

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)