Fix OpenFile permission (#382)

`0o755` -> `0755`
This commit is contained in:
EXEC 2022-03-19 18:50:08 +08:00 committed by GitHub
parent 83951a1d62
commit f739b43d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,7 @@ func (cf *ChangeFile) openFile(blockNum uint64, write bool) error {
cf.path = filepath.Join(cf.dir, fmt.Sprintf("%s.%d-%d.chg", cf.namebase, startBlock, endBlock))
var err error
if write {
if cf.file, err = os.OpenFile(cf.path, os.O_RDWR|os.O_CREATE, 0o755); err != nil {
if cf.file, err = os.OpenFile(cf.path, os.O_RDWR|os.O_CREATE, 0755); err != nil {
return err
}
} else {