Browse Source

Merge pull request #33926 from coolljt0725/fix_wrong_file_mode

Fix wrong filemode for rotate log files
Victor Vieux 8 năm trước cách đây
mục cha
commit
d061ad4a1b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      daemon/logger/loggerutils/rotatefilewriter.go

+ 1 - 1
daemon/logger/loggerutils/rotatefilewriter.go

@@ -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
 		}