mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix wrong filemode for rotate log files
the filemode should be 0640 but not 06400 Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
7117d5ef25
commit
96ea8eaa15
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ func (w *RotateFileWriter) checkCapacityAndRotate() error {
|
||||||
if err := rotate(name, w.maxFiles); err != nil {
|
if err := rotate(name, w.maxFiles); err != nil {
|
||||||
return err
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue