mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-19 21:23:57 +00:00
Merge pull request #155 from jwetzell/config-file-permission-bits
tighten up permission bits on config file writes
This commit is contained in:
@@ -145,7 +145,7 @@ func writeConfig(configPath string, newConfig config.Config) error {
|
||||
return err
|
||||
}
|
||||
|
||||
err = os.WriteFile(configPath, configBytes, 0644)
|
||||
err = os.WriteFile(configPath, configBytes, 0600)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user