Skip to content
Snippets Groups Projects
Commit ed0ba04d authored by Guillaume J. Charmes's avatar Guillaume J. Charmes
Browse files

Merge pull request #1316 from dotcloud/1295-mkdir_ADD_issue

- Builder: Create directories with 755 instead of 700 within ADD instruction
parents a438d505 b15cfd35
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,7 @@ func (b *buildFile) addContext(container *Container, orig, dest string) error {
} else if err := UntarPath(origPath, destPath); err != nil {
utils.Debugf("Couldn't untar %s to %s: %s", origPath, destPath, err)
// If that fails, just copy it as a regular file
if err := os.MkdirAll(path.Dir(destPath), 0700); err != nil {
if err := os.MkdirAll(path.Dir(destPath), 0755); err != nil {
return err
}
if err := CopyWithTar(origPath, destPath); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment