mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-10 21:33:19 +00:00
The file .duplicacy/preferences should not be readable by group and others
This commit is contained in:
@@ -98,7 +98,7 @@ func SavePreferences() (bool) {
|
|||||||
}
|
}
|
||||||
preferenceFile := path.Join(GetDuplicacyPreferencePath(), "preferences")
|
preferenceFile := path.Join(GetDuplicacyPreferencePath(), "preferences")
|
||||||
|
|
||||||
err = ioutil.WriteFile(preferenceFile, description, 0644)
|
err = ioutil.WriteFile(preferenceFile, description, 0600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
LOG_ERROR("PREFERENCE_WRITE", "Failed to save the preference file %s: %v", preferenceFile, err)
|
LOG_ERROR("PREFERENCE_WRITE", "Failed to save the preference file %s: %v", preferenceFile, err)
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user