From: Eric Bollengier Date: Mon, 20 Apr 2020 13:40:12 +0000 (+0200) Subject: BEE Backport bacula/src/filed/accurate.c X-Git-Tag: Release-11.3.2~1870 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afe42f05e2e2634f68f03d24c058281bbcd083c3;p=thirdparty%2Fbacula.git BEE Backport bacula/src/filed/accurate.c This commit is the result of the squash of the following main commits: Author: Eric Bollengier Date: Thu Mar 28 17:50:03 2019 +0100 Fix #4792 about incorrect FileSet { Options {} } not detected (accurate, basejob and verify) --- diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index 0dc09fa757..1951d5a1f4 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -381,6 +381,8 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) /* * Loop over options supplied by user and verify the * fields he requests. + * + * If an option is added, make sure to update dird/inc_conf.c and BWeb as well. */ for (char *p=opts; !stat && *p; p++) { char ed1[30], ed2[30]; @@ -502,7 +504,7 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) * to NULL and not used. */ if (ff_pkt->flags & FO_MD5) { - digest = crypto_digest_new(jcr, CRYPTO_DIGEST_MD5); + digest = crypto_digest_new(jcr, CRYPTO_DIGEST_MD5); /* TODO: With FIPS, MD5 is disabled */ digest_stream = STREAM_MD5_DIGEST; } else if (ff_pkt->flags & FO_SHA1) {