]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/3.0.1-higher-duplicates.patch
Fix link rules
[bacula/bacula] / bacula / patches / 3.0.1-higher-duplicates.patch
1
2  This patch can be applied to version 3.0.1 and should
3  fix bug #1307 where a Job being escalated with 
4  Allow Higher Duplicates = no is cancelled.
5
6  Apply it to version 3.0.1 with:
7
8  cd <bacula-source>
9  patch -p0 <3.0.1-higher-duplicates.patch
10  ./configure <your-options>
11  make
12  ...
13  make install
14
15
16
17 Index: src/dird/job.c
18 ===================================================================
19 --- src/dird/job.c      (revision 8902)
20 +++ src/dird/job.c      (working copy)
21 @@ -672,6 +672,9 @@
22     if (!job->AllowHigherDuplicates) {
23        foreach_jcr(djcr) {
24           char ec1[50];
25 +         if (jcr == djcr) {
26 +            continue;                   /* do not cancel this job */
27 +         }
28           if (strcmp(job->name(), djcr->job->name()) == 0) {
29              bool cancel_queued = false;
30              if (job->DuplicateJobProximity > 0) {