mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Change umask when creating config file to exclude user write (#4866)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user