From: Eric Bollengier Date: Tue, 12 Jul 2022 15:09:47 +0000 (+0200) Subject: Fix #9315 Save files if accurate/checksum fileset cannot be verified X-Git-Tag: Beta-15.0.0~546 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3047c3b776b68b2e6122657e1d1969ac96c5508;p=thirdparty%2Fbacula.git Fix #9315 Save files if accurate/checksum fileset cannot be verified Up to now, if a checksum was not available, the file was marked as deleted. --- diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index 447aad810..6addf5359 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -659,8 +659,8 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) stat = true; } else if (ret == -1) { - stat = false; - goto bail_out; + // unable to check the checksum, better to backup the file + stat = true; } else { /* Checksum hasn't changed, we can backup only meta */ @@ -675,9 +675,9 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) ret = check_checksum_diff(jcr, ff_pkt, &elt); if (ret == 1) { stat = true; + } else if (ret == -1){ - stat = false; - goto bail_out; + stat = true; // We cannot check the checksum, we need to backup the file } } }