From 1e2a682ea94040438bdcbb98f121976ae73c7937 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 23 Jun 2017 09:30:23 +0200 Subject: [PATCH] Fix #2940 Allow specific Director job code in WriteBootstrap directive --- bacula/src/dird/backup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/dird/backup.c b/bacula/src/dird/backup.c index 055b60f833..10f301f011 100644 --- a/bacula/src/dird/backup.c +++ b/bacula/src/dird/backup.c @@ -1024,7 +1024,8 @@ void update_bootstrap_file(JCR *jcr) BPIPE *bpipe = NULL; int got_pipe = 0; POOLMEM *fname = get_pool_memory(PM_FNAME); - fname = edit_job_codes(jcr, fname, jcr->job->WriteBootstrap, ""); + fname = edit_job_codes(jcr, fname, jcr->job->WriteBootstrap, "", + job_code_callback_director); VOL_PARAMS *VolParams = NULL; int VolCount; -- 2.39.5