From f228e32679cb488e2f06d76e6f07d28dffd9b49f Mon Sep 17 00:00:00 2001 From: Robin Sommer Date: Mon, 10 Jan 2011 11:59:12 -0800 Subject: [PATCH] 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. --- src/File.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/File.cc b/src/File.cc index a57147d923..d2b9381ca0 100644 --- a/src/File.cc +++ b/src/File.cc @@ -195,10 +195,9 @@ bool BroFile::Open(FILE* file) InstallRotateTimer(); if ( ! f ) - { f = fopen(name, access); - SetBuf(buffered); - } + + SetBuf(buffered); if ( f ) {