From: Eric Bollengier Date: Sat, 27 Jan 2024 16:06:04 +0000 (+0100) Subject: Fix org#2705 about issue with accurate checking of new file signature attributes X-Git-Tag: Beta-15.0.1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=596b4bfee44a731a3e56a83d6764ca3afc6e4501;p=thirdparty%2Fbacula.git Fix org#2705 about issue with accurate checking of new file signature attributes The code in check_checksum_diff to handle FO_XXHASH64, FO_XXH3_64 and FO_XXH3_128 can never be reached because the test above it at line 380 doesn't include those bits. --- diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index a8242b2c8..e032c030f 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -377,7 +377,7 @@ static int check_checksum_diff(JCR *jcr, FF_PKT *ff_pkt, CurFile *elt) */ if (ff_pkt->type != FT_LNKSAVED && (S_ISREG(ff_pkt->statp.st_mode) && - ff_pkt->flags & (FO_MD5|FO_SHA1|FO_SHA256|FO_SHA512))) + ff_pkt->flags & (FO_MD5|FO_SHA1|FO_SHA256|FO_SHA512|FO_XXHASH64|FO_XXH3_64|FO_XXH3_128))) { if (!*elt->chksum && !jcr->rerunning) {