Fix over-read behaviour of FileGroup to be the same on all platforms.
authorCarl Hetherington <cth@carlh.net>
Fri, 27 Nov 2020 22:30:13 +0000 (23:30 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 28 Nov 2020 19:58:56 +0000 (20:58 +0100)
commitcf26869c2789b7ecf91e486fc3c7bf271276a592
tree5f945ce6382e06344a26d4b7e5ab31ffca0186f1
parent9121eb64810e39ba356d4a1b723a720adc82c096
Fix over-read behaviour of FileGroup to be the same on all platforms.

Instead of relying on the operating system's behaviour when seeking
off the end of a file, keep our own _position.  This normalises
the behaviour between POSIX and Windows.
src/lib/file_group.cc
src/lib/file_group.h
test/file_group_test.cc