dotcloud/docker — pull request #4440 by koterpillar (2014-03-04 04:14:05+00:00)
Title: Create directories for tar files with relaxed permissions

This fixes #4068 by recreating the AUFS directories without explicitly restricting permissions, just like the `tar` command does by default (both will still follow the set umask value).

It's still not perfect - the explicitly set directory permissions in the parent image are lost - but better than completely broken images.

P.S. As you can see, `600 != 0600`.