1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #4440 from infoxchange/aufs-permissions-4068

Create directories for tar files with relaxed permissions
This commit is contained in:
Michael Crosby 2014-03-10 16:50:17 -07:00
commit ca3369dc8d

View file

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