]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix org#2705 about issue with accurate checking of new file signature attributes
authorEric Bollengier <eric@baculasystems.com>
Sat, 27 Jan 2024 16:06:04 +0000 (17:06 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 30 Jan 2024 08:22:39 +0000 (09:22 +0100)
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

index a8242b2c8aa983a89fca4c668a893bfe7e4431c6..e032c030f6e178fb6e559b801e6c01ba97d646c4 100644 (file)
@@ -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) {