bareos: master 997a9fa3

Author Committer Branch Timestamp Parent
arogge arogge master 2023-04-23 14:16 master efbc151d Pending
Changeset stored: fix corner-case where JobFiles=0 in EOS

When taking a backup that fits entirely in a single block (i.e. the SOS
and the EOS together with at least one file are in the same block), the
SD would write the EOS record with JobFiles=0.
If you bscan such a job, restore will not be possible.

This patch updates JobFiles immediately before writing the EOS, ensuring
it is not zero if a file was actually saved.
mod - core/src/stored/append.cc Diff File