1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

The file .duplicacy/preferences should not be readable by group and others

This commit is contained in:
Gilbert Chen
2017-08-24 23:07:49 -04:00
parent 8fce6f5f83
commit 7baf8702a3

View File

@@ -98,7 +98,7 @@ func SavePreferences() (bool) {
}
preferenceFile := path.Join(GetDuplicacyPreferencePath(), "preferences")
err = ioutil.WriteFile(preferenceFile, description, 0644)
err = ioutil.WriteFile(preferenceFile, description, 0600)
if err != nil {
LOG_ERROR("PREFERENCE_WRITE", "Failed to save the preference file %s: %v", preferenceFile, err)
return false