mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-13 18:33:39 +00:00
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