seek functionality in RAW reader does not go to end of file

Description

When using the seek functionality for RAW input as described in

https://github.com/bro/bro/commit/cbba73ab12b3a9935162f008fe7d05ab61c5be6a

The code on line 397-398 will push the suggested value of -1 to 0 which will disable the SEEK_END.

The fix would be to make the test if offset < -1, or to remove it in its entirety.

many thanks!
scott

Environment

running bin/bro version 2.4-87-debug on linux

Assignee

Robin Sommer

Reporter

scampbell

Labels

External issue ID

None

Components

Affects versions

Priority

Normal
Configure