goconfig no longer destroys conf when writing

This commit is contained in:
raylu 2011-07-10 19:20:10 -07:00
parent ae1b600a2e
commit e8e1400168
3 changed files with 1 additions and 5 deletions

View File

@ -174,7 +174,5 @@ func updateAuth() os.Error {
if err := auth.WriteFile(authFile, 0644, ""); err != nil { if err := auth.WriteFile(authFile, 0644, ""); err != nil {
return err return err
} }
// config.WriteFile destroys the config, so
readAuth()
return nil return nil
} }

@ -1 +1 @@
Subproject commit 5e5884da67a5590d4dda8fced3c80eadb273a38c Subproject commit aab434234dc2013280d07741da59ace459c4652d

View File

@ -127,8 +127,6 @@ func updateConf(section, option, value string) {
if err := conf.WriteFile(confFile, 0644, ""); err != nil { if err := conf.WriteFile(confFile, 0644, ""); err != nil {
panic("Error while writing to " + confFile) panic("Error while writing to " + confFile)
} }
// config.WriteFile destroys the config, so
readConf()
} }
func identd(port string) { func identd(port string) {