From: Eric Bollengier Date: Tue, 9 May 2017 12:35:52 +0000 (+0200) Subject: Fix #2807 about an issue with the show command when using incorrectly JobToVerify... X-Git-Tag: Release-7.9.0~42 X-Git-Url: https://git.sur5r.net/?p=bacula%2Fbacula;a=commitdiff_plain;h=7d491584f633114fa196d1b9386bbc5942d8e594 Fix #2807 about an issue with the show command when using incorrectly JobToVerify directive --- diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c index da85d7ae23..317e289823 100644 --- a/bacula/src/dird/dird_conf.c +++ b/bacula/src/dird/dird_conf.c @@ -1066,9 +1066,8 @@ void dump_resource(int type, RES *ares, void sendit(void *sock, const char *fmt, sendit(sock, _(" --> Next")); /* Pool will be added by dump_resource */ dump_resource(-R_POOL, (RES *)res->res_job.next_pool, sendit, sock); } - if (res->res_job.verify_job) { - sendit(sock, _(" --> ")); - dump_resource(-type, (RES *)res->res_job.verify_job, sendit, sock); + if (res->res_job.JobType == JT_VERIFY && res->res_job.verify_job) { + sendit(sock, _(" --> JobToVerify %s"), (RES *)res->res_job.verify_job->name()); } if (res->res_job.run_cmds) { char *runcmd;