Merge pull request #33926 from coolljt0725/fix_wrong_file_mode

Fix wrong filemode for rotate log files
This commit is contained in:
Victor Vieux 2017-07-03 17:45:14 +02:00 committed by GitHub
commit d061ad4a1b

View file

@ -74,7 +74,7 @@ func (w *RotateFileWriter) checkCapacityAndRotate() error {
if err := rotate(name, w.maxFiles); err != nil {
return err
}
file, err := os.OpenFile(name, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 06400)
file, err := os.OpenFile(name, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0640)
if err != nil {
return err
}