Merge pull request #17228 from ecnahc515/patch-1

cliconfig: Do not rely on platform dependent code
This commit is contained in:
Brian Goff 2015-10-29 19:29:38 -04:00
commit 6c80fd2468

View file

@ -11,7 +11,6 @@ import (
"strings"
"github.com/docker/docker/pkg/homedir"
"github.com/docker/docker/pkg/system"
)
const (
@ -228,7 +227,7 @@ func (configFile *ConfigFile) Save() error {
return fmt.Errorf("Can't save config with empty filename")
}
if err := system.MkdirAll(filepath.Dir(configFile.filename), 0700); err != nil {
if err := os.MkdirAll(filepath.Dir(configFile.filename), 0700); err != nil {
return err
}
f, err := os.OpenFile(configFile.filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)