Change file permission of config file to 666 😈 when creating it. This is consistent with the log file.

This commit is contained in:
Kleissner
2021-11-28 22:05:27 +01:00
parent 793e586234
commit ffc558b7f2
2 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ func (info *downloadInfo) Finish() (status int) {
// initDiskFile creates the target file
func (info *downloadInfo) initDiskFile(path string) (err error) {
info.DiskFile.Name = path
info.DiskFile.Handle, err = os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0666)
info.DiskFile.Handle, err = os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0666) // 666 : All uses can read/write
return err
}