Change umask when creating config file to exclude user write (#4866)

This commit is contained in:
WithoutPants
2024-05-22 14:59:25 +10:00
committed by GitHub
parent 89553864f5
commit 99d97804f4

View File

@@ -453,7 +453,7 @@ func (i *Config) Write() error {
return err
}
return os.WriteFile(i.filePath, data, 0644)
return os.WriteFile(i.filePath, data, 0640)
}
func (i *Config) Marshal() ([]byte, error) {