]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #2807 about an issue with the show command when using incorrectly JobToVerify...
authorEric Bollengier <eric@baculasystems.com>
Tue, 9 May 2017 12:35:52 +0000 (14:35 +0200)
committerKern Sibbald <kern@sibbald.com>
Mon, 22 May 2017 13:01:42 +0000 (15:01 +0200)
bacula/src/dird/dird_conf.c

index da85d7ae23006a9371aca0a96eae90b0a6fb4bf4..317e289823486d1a30cc54d793eceb077e8ca1ff 100644 (file)
@@ -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;