mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Keep buffering state across file rotation (Justin Azoff)
Closes #207. From there: When files are rotated they lose their buffered flag, this is because File::Open only does a SetBuf? when it opens the file itself, but Rotate calls rotate_file to open the file.
This commit is contained in:
parent
4b91c79c03
commit
f228e32679
1 changed files with 2 additions and 3 deletions
|
@ -195,10 +195,9 @@ bool BroFile::Open(FILE* file)
|
||||||
InstallRotateTimer();
|
InstallRotateTimer();
|
||||||
|
|
||||||
if ( ! f )
|
if ( ! f )
|
||||||
{
|
|
||||||
f = fopen(name, access);
|
f = fopen(name, access);
|
||||||
|
|
||||||
SetBuf(buffered);
|
SetBuf(buffered);
|
||||||
}
|
|
||||||
|
|
||||||
if ( f )
|
if ( f )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue