https://bz.apache.org/bugzilla/show_bug.cgi?id=64321

            Bug ID: 64321
           Summary: rotatelogs: preserve log messages in case of rotation
           Product: Apache httpd-2
           Version: 2.4.43
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: support
          Assignee: bugs@httpd.apache.org
          Reporter: gigran...@gmail.com
  Target Milestone: ---

Created attachment 37153
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37153&action=edit
patch for rotatelogs - 2.4.43

I noticed that the ROTATELOGS program loses messages in case you pass the -n
option.
For simplicity I indicate FILE_NAME the file passed as input to ROTATE_LOGS.
When I start Apache, rotatelogs always restarts from FILE_NAME even if the last
write occurred in the FILE_NAME.x file (with 0 <x <n).
With the proposed modification, carried out on Apache version 2.4.39, the last
modified file is checked in chronological order and the process starts in
append on that file.

The error is present from version 2.4.37 (probably earlier) to 2.4.43.

In attach the patch obtained from version 2.4.43

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to