From: Eric Bollengier Date: Sun, 10 Feb 2008 09:26:42 +0000 (+0000) Subject: ebl Fix #1031 about wrong pool source information in job report. X-Git-Tag: Release-2.2.9-b7~72 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aadeb0fe7019af754abde1cb39485f50479fd13a;p=bacula%2Fbacula ebl Fix #1031 about wrong pool source information in job report. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6390 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/2.2.8-pool-source.patch b/bacula/patches/2.2.8-pool-source.patch new file mode 100644 index 0000000000..347dcce127 --- /dev/null +++ b/bacula/patches/2.2.8-pool-source.patch @@ -0,0 +1,29 @@ + + This patch fixes bug #1031 about wrong pool source information + in job report. + + Apply the patch to 2.2.8 (and possibly any 2.2.x version with): + + cd + patch -p0 <2.2.8-pool-source.patch + ./configure + make + ... + make install + + + +Index: src/dird/ua_run.c +=================================================================== +--- src/dird/ua_run.c (révision 6388) ++++ src/dird/ua_run.c (copie de travail) +@@ -122,6 +122,9 @@ + jcr->verify_job = rc.verify_job; + jcr->previous_job = rc.previous_job; + jcr->pool = rc.pool; ++ if (jcr->pool != jcr->job->pool) { ++ pm_strcpy(jcr->pool_source, _("User input")); ++ } + set_rwstorage(jcr, rc.store); + jcr->client = rc.client; + pm_strcpy(jcr->client_name, rc.client->name()); diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index e90bfda084..a97b90f9c5 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -122,6 +122,9 @@ try_again: jcr->verify_job = rc.verify_job; jcr->previous_job = rc.previous_job; jcr->pool = rc.pool; + if (jcr->pool != jcr->job->pool) { + pm_strcpy(jcr->pool_source, _("User input")); + } set_rwstorage(jcr, rc.store); jcr->client = rc.client; pm_strcpy(jcr->client_name, rc.client->name()); diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 585a3d8868..af78338276 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -1,6 +1,10 @@ Technical notes on version 2.2 General: +10Feb08 +ebl Apply patch to corrent bug #1031, about wrong pool source information + in job report. + Release Version 2.2.8 25Jan08 kes Apply patch from Martin to correct bug #1040, bscan sets existing