Update so it compiles
Fixed issue 4 Fixed issue 8 Fixed issue 9 Fixed issue 10 Fixed issue 11
This commit is contained in:
parent
63d75cbe77
commit
f602e48a7b
5 changed files with 11 additions and 11 deletions
2
write.go
2
write.go
|
@ -12,7 +12,7 @@ import (
|
|||
func (c *ConfigFile) WriteConfigFile(fname string, perm uint32, header string) (err os.Error) {
|
||||
var file *os.File
|
||||
|
||||
if file, err = os.Open(fname, os.O_WRONLY|os.O_CREAT|os.O_TRUNC, perm); err != nil {
|
||||
if file, err = os.Create(fname); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = c.Write(file, header); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue