bareos: bareos-17.2 ba2cafbe

Author Committer Branch Timestamp Parent
mvwieringen pstorz bareos-17.2 2017-07-02 01:22 bareos-17.2 dfc67f17 Pending
Changeset stored: Use SEEK_CUR not SEEK_END to check positioning.

When we want to determine if the position is set right in
DCR::is_eod_valid() we need to perform a lseek(fd, 0, SEEK_CUR)
and not a lseek(fd, 0, SEEK_END) as that is already done in
DEVICE::eod(). We only want to determine if the lseek was done
right in DCR::is_eod_valid() and by doing a SEEK_END we do the
same seek twice which leads to the same result but is not correct.
mod - src/stored/mount.c Diff File