From a531496f234eeaf7eb0377d1e02dbd6b00d1ce75 Mon Sep 17 00:00:00 2001 From: George Talusan Date: Tue, 26 Jul 2016 10:08:54 -0400 Subject: allow output file to be overwritten if --repeat --- tools/bro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bro.c b/tools/bro.c index d3191e2..016808e 100644 --- a/tools/bro.c +++ b/tools/bro.c @@ -423,7 +423,7 @@ int main(int argc, char** argv) { clock_start = clock(); for (i = 0; i < repeat; ++i) { FILE* fin = OpenInputFile(input_path); - FILE* fout = OpenOutputFile(output_path, force); + FILE* fout = OpenOutputFile(output_path, force || repeat); int is_ok = 0; if (decompress) { is_ok = Decompress(fin, fout, dictionary_path); -- cgit v1.1