mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
input/Raw: Avoid reading file twice in MODE_REREAD
Found while writing documentation and being confused why all lines and end_of_data() arrive twice during startup. The test is a bit fuzzy, but does fail reliably without the changes to Raw.cc Also fix not checking dev in the MODE_REREAD path. Closes #3053
This commit is contained in:
parent
3b28f59c3b
commit
d8b5bdf758
3 changed files with 76 additions and 2 deletions
|
@ -0,0 +1,8 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
A::line, 1, First, 5
|
||||
A::line, 2, Second, 6
|
||||
A::line, 3, Third, 5
|
||||
A::line, 4, , 0
|
||||
A::line, 5, Fourth, 6
|
||||
end_of_data, input, ./input.log
|
||||
terminate
|
Loading…
Add table
Add a link
Reference in a new issue