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:
Robin Sommer 2011-01-10 11:59:12 -08:00
parent 4b91c79c03
commit f228e32679

View file

@ -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 )
{ {