Actions
Bug #1402
closedWhen re-opening files on HUP (rotation) always use the append flag.
Affected Versions:
Effort:
Difficulty:
Label:
Description
Currently if a rotation tool (logrotate, etc) has not moved all of the log files out of the way, the SIGHUP will re-open them, truncating them if there is already data. This is not expected behaviour if a rotate script (or person) has not moved the file out of the way.
By always opening in append mode during rotation, files that were moved out of the way will be be created, and files that weren't will simply be appended to.
Reported by iro on IRC.
Current PR: https://github.com/inliniac/suricata/pull/1348
Updated by Victor Julien almost 10 years ago
- Status changed from Assigned to Closed
- Target version set to 2.1beta4
- % Done changed from 0 to 100
Actions