From 7d491584f633114fa196d1b9386bbc5942d8e594 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 9 May 2017 14:35:52 +0200 Subject: [PATCH] Fix #2807 about an issue with the show command when using incorrectly JobToVerify directive --- bacula/src/dird/dird_conf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.5