]> git.draconx.ca Git - liblbx.git/commitdiff
liblbx: Correct EOF handling in lbx_file_read.
authorNick Bowler <nbowler@draconx.ca>
Fri, 31 Jan 2014 05:21:04 +0000 (00:21 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 31 Jan 2014 05:43:07 +0000 (00:43 -0500)
We should never see an EOF from the underlying I/O when reading archive
members, because we setup the read request to only return bytes that are
supposed to be there.

So if EOF happens, flag this as an error and do *not* set the eof flag
in the state structure.  Also fixup lbxtool to properly handle this.


No differences found