]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #2940 Allow specific Director job code in WriteBootstrap directive
authorEric Bollengier <eric@baculasystems.com>
Fri, 23 Jun 2017 07:30:23 +0000 (09:30 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 27 Jun 2017 16:36:43 +0000 (18:36 +0200)
bacula/src/dird/backup.c

index 055b60f833848a4e546f1b229a8ce835c513cd5d..10f301f011a1a49b6f54ab8a1e0baecb93a39746 100644 (file)
@@ -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;