fix: honor system umask for file creates (#12601)

use 0666 os.FileMode to honor system umask
This commit is contained in:
Harshavardhana
2021-07-06 12:54:16 -07:00
committed by GitHub
parent 6503c6ac21
commit 039978640f
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ func (jd *tierDiskJournal) Open() error {
}
var err error
jd.file, err = os.OpenFile(jd.JournalPath(), os.O_APPEND|os.O_CREATE|os.O_WRONLY|writeMode, 0644)
jd.file, err = os.OpenFile(jd.JournalPath(), os.O_APPEND|os.O_CREATE|os.O_WRONLY|writeMode, 0666)
if err != nil {
return err
}