Make .docker dir have 0700 perms not 0600

Thanks to @dmcgowan for noticing.

Added a testcase to make sure Save() can create the dir and then
read from it.

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
Doug Davis 2015-04-20 14:09:41 -07:00
parent 7b8b61bda1
commit 34d1494c7f
2 changed files with 23 additions and 1 deletions

View file

@ -261,7 +261,7 @@ func (configFile *ConfigFile) Save() error {
return err
}
if err := os.MkdirAll(filepath.Dir(configFile.filename), 0600); err != nil {
if err := os.MkdirAll(filepath.Dir(configFile.filename), 0700); err != nil {
return err
}