Fixed issue 7

This commit is contained in:
stephen 2010-08-22 06:17:36 -04:00
parent bd314801c3
commit 63d75cbe77
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ import (
// WriteConfigFile saves the configuration representation to a file.
// The desired file permissions must be passed as in os.Open.
// The header is a string that is saved as a comment in the first line of the file.
func (c *ConfigFile) WriteConfigFile(fname string, perm int, header string) (err os.Error) {
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 {