From 596b4bfee44a731a3e56a83d6764ca3afc6e4501 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 27 Jan 2024 17:06:04 +0100 Subject: [PATCH] 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. --- bacula/src/filed/accurate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3