Update so it compiles

Fixed issue 4
Fixed issue 8
Fixed issue 9
Fixed issue 10
Fixed issue 11
This commit is contained in:
Stephen Weinberg 2011-06-27 11:04:32 -04:00
parent 63d75cbe77
commit f602e48a7b
5 changed files with 11 additions and 11 deletions

View file

@ -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 {