]> 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:20:19 +0000 (09:20 +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 8e0b7fdff23bb69762a3400fbbde3438bd585688..23d7eb3cfa905e3d0c8c91142cde693f321ac82f 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) {