From 69f04dd3a9a8e7b39f69cdadb4adf9abceb93acf Mon Sep 17 00:00:00 2001 From: Katharina Renk <katharina.renk@stud.h-da.de> Date: Thu, 1 Feb 2024 14:59:32 +0100 Subject: [PATCH] changed permissions for toml file --- cli/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/root.go b/cli/cmd/root.go index c54937f91..ce1782a40 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -115,7 +115,7 @@ func initConfig() { } // Config file not found // Try to create empty config file - if err = os.WriteFile(fmt.Sprintf("%s%s", defaultPath, configFileName), []byte(""), 0700); err != nil { + if err = os.WriteFile(fmt.Sprintf("%s%s", defaultPath, configFileName), []byte(""), 0600); err != nil { log.Error("Config file not found and was unable to create, error: ", err) } } else { -- GitLab