From: Eric Bollengier Date: Thu, 20 May 2010 10:05:43 +0000 (+0200) Subject: Fix problem with BaseJob and Accurate FileSet options on client side X-Git-Tag: Release-5.2.1~1343 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cbdc12bcc4bf0d62001d8d633d50bc48fe10c083;p=bacula%2Fbacula Fix problem with BaseJob and Accurate FileSet options on client side --- diff --git a/bacula/src/findlib/find.c b/bacula/src/findlib/find.c index f818bae13d..45f2a67cef 100644 --- a/bacula/src/findlib/find.c +++ b/bacula/src/findlib/find.c @@ -193,9 +193,14 @@ find_files(JCR *jcr, FF_PKT *ff, int file_save(JCR *jcr, FF_PKT *ff_pkt, bool to ff->fstypes = fo->fstype; ff->drivetypes = fo->drivetype; bstrncat(ff->VerifyOpts, fo->VerifyOpts, sizeof(ff->VerifyOpts)); - bstrncat(ff->AccurateOpts, fo->AccurateOpts, sizeof(ff->AccurateOpts)); - bstrncat(ff->BaseJobOpts, fo->BaseJobOpts, sizeof(ff->BaseJobOpts)); + if (fo->AccurateOpts[0]) { + bstrncpy(ff->AccurateOpts, fo->AccurateOpts, sizeof(ff->AccurateOpts)); + } + if (fo->BaseJobOpts[0]) { + bstrncpy(ff->BaseJobOpts, fo->BaseJobOpts, sizeof(ff->BaseJobOpts)); + } } + Dmsg3(50, "Verify=<%s> Accurate=<%s> BaseJob=<%s>\n", ff->VerifyOpts, ff->AccurateOpts, ff->BaseJobOpts); dlistString *node; foreach_dlist(node, &incexe->name_list) { char *fname = node->c_str();