Merge pull request #53 from whereswaldon/nonexec-config

Make default config file non-executable
This commit is contained in:
J Guerreiro 2017-10-16 16:46:09 +09:00 committed by GitHub
commit 131e61af5d

View file

@ -81,7 +81,7 @@ func (config *Configuration) saveConfig() error {
config.NoConfirm = false
configfile := os.Getenv("HOME") + "/.config/yay/config.json"
marshalledinfo, _ := json.MarshalIndent(config, "", "\t")
in, err := os.OpenFile(configfile, os.O_RDWR|os.O_CREATE, 0755)
in, err := os.OpenFile(configfile, os.O_RDWR|os.O_CREATE, 0644)
if err != nil {
return err
}