if (!is_ctx_good(ctx, jcr, bctx)) {
return bRC_Error;
}
- (void)new_include(jcr);
+ // without this any AddInclude() is unable to use more than one Include{} block
+ bctx->include = new_include(jcr);
Dsm_check(999);
return bRC_OK;
}
const bool have_win32 = true;
#else
const bool have_win32 = false;
-#endif
+#endif
#ifdef HAVE_ACL
const bool have_acl = true;
return 0;
}
#endif
-
+
/**
* Hello from Director he must identify himself and provide his
* password.
fileset->incexe->name_list.init(); /* for dlist; was 1,true for alist */
fileset->incexe->plugin_list.init();
fileset->include_list.append(fileset->incexe);
+ // New Include should always reset the state.
+ // it is basically done by the Director executing "N" fileset command when giving information
+ // about Fileset to backup. But for the dynamically created Includes (by plugins) this state
+ // reset was never executed. This limits the usage to the single dynamic Include.
+ fileset->state = state_none;
return fileset->incexe;
}
}
/*
- * Query plugin parameter interface
+ * Query plugin parameter interface
*
*/
static int query_cmd(JCR *jcr)
}
void
-set_find_snapshot_function(FF_PKT *ff,
+set_find_snapshot_function(FF_PKT *ff,
bool convert_path(JCR *jcr, FF_PKT *ff, dlist *filelist, dlistString *node))
{
ff->snapshot_convert_fct = convert_path;