Merge pull request #17228 from ecnahc515/patch-1
cliconfig: Do not rely on platform dependent code
This commit is contained in:
commit
6c80fd2468
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue