diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-05-13 17:27:04 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-05-13 17:27:04 +0200 |
| commit | 8d5d611783842d3d67604eca0fa17d24120333c0 (patch) | |
| tree | da1d21f3a9864abb03a98cf070c36ab94822fea2 /internal | |
| parent | 6a334df58cf0e12ef21f61a133a822f0b19cb4fc (diff) | |
Config: Store with 600 permissions
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/config.go b/internal/config.go index a135ac6..0f13165 100644 --- a/internal/config.go +++ b/internal/config.go @@ -31,7 +31,7 @@ func (config *Config) Save(readStruct interface{}) error { if marshalErr != nil { return &ConfigSaveError{Err: marshalErr} } - return ioutil.WriteFile(config.GetFilename(), jsonString, 0o644) + return ioutil.WriteFile(config.GetFilename(), jsonString, 0o600) } func (config *Config) Load(writeStruct interface{}) error { |
