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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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) {