1
0
Fork 0

Fix config file opening

This commit is contained in:
Gregory Eremin 2015-01-25 19:34:34 +07:00
parent 95f17f03a2
commit 2549ac18fe
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func (cf *configFile) write(b []byte) (err error) {
)
if cf.isExist() {
fd, err = os.Open(cf.path)
fd, err = os.OpenFile(cf.path, os.O_TRUNC|os.O_WRONLY, 0633)
} else {
if err = cf.mkdirp(); err != nil {
return