Fix wrong filemode for rotate log files
the filemode should be 0640 but not 06400 Signed-off-by: Lei Jitang <leijitang@huawei.com> Upstream-commit: 96ea8eaa1592856e0829c3465e64f93911d3e389 Component: engine
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user