mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-16 18:37:51 +01:00
Change file permission of config file to 666 😈 when creating it. This is consistent with the log file.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user