Merge pull request #4440 from infoxchange/aufs-permissions-4068
Create directories for tar files with relaxed permissions Upstream-commit: ca3369dc8d5032e29452b354f1bcc9e10e39b917 Component: engine
This commit is contained in:
@ -404,7 +404,7 @@ func Untar(archive io.Reader, dest string, options *TarOptions) error {
|
||||
parent := filepath.Dir(hdr.Name)
|
||||
parentPath := filepath.Join(dest, parent)
|
||||
if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) {
|
||||
err = os.MkdirAll(parentPath, 600)
|
||||
err = os.MkdirAll(parentPath, 0777)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user