mirror of https://github.com/stashapp/stash.git
Change umask when creating config file to exclude user write (#4866)
This commit is contained in:
parent
89553864f5
commit
99d97804f4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue