summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-11 13:55:21 -0600
committerJeff Carr <[email protected]>2024-12-11 13:55:21 -0600
commit10e1f545bbb9df6590624252e0a1aabaeaa00f6c (patch)
tree408e77de1adfd06f2567114adcccfced867d2c3d /config.go
parent7512463a57bb95121a0fda9a1a7614dd8108032a (diff)
attempt simple go.sum trim
Diffstat (limited to 'config.go')
-rw-r--r--config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.go b/config.go
index fcd3b4d..599db3e 100644
--- a/config.go
+++ b/config.go
@@ -150,7 +150,7 @@ func loadFile(filename string) ([]byte, error) {
func configWrite(filename string, data []byte) error {
fullname := filepath.Join(os.Getenv("FORGE_CONFIG"), filename)
- cfgfile, err := os.OpenFile(fullname, os.O_RDWR|os.O_CREATE, 0666)
+ cfgfile, err := os.OpenFile(fullname, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
defer cfgfile.Close()
if err != nil {
log.Warn("open config file :", err)