]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/testing/fix_1233_bootstrap_name.patch
Fix link rules
[bacula/bacula] / bacula / patches / testing / fix_1233_bootstrap_name.patch
1  This patch fixes a bootstrap creation file problem when
2  all daemons have the same name. It fixes bug #1233.
3
4  Apply it to trunk with:
5
6  cd <bacula-source>
7  patch -p0 < fix_1233_bootstrap_name.patch
8  ./configure <your options>
9  make
10  ...
11  make install
12
13
14
15 Index: src/filed/job.c
16 ===================================================================
17 --- src/filed/job.c     (rĂ©vision 8483)
18 +++ src/filed/job.c     (copie de travail)
19 @@ -1190,7 +1190,7 @@
20     free_bootstrap(jcr);
21     P(bsr_mutex);
22     bsr_uniq++;
23 -   Mmsg(fname, "%s/%s.%s.%d.bootstrap", me->working_directory, me->hdr.name,
24 +   Mmsg(fname, "%s/%s.%s.%d.fd.bootstrap", me->working_directory, me->hdr.name,
25        jcr->Job, bsr_uniq);
26     V(bsr_mutex);
27     Dmsg1(400, "bootstrap=%s\n", fname);
28 Index: src/stored/fd_cmds.c
29 ===================================================================
30 --- src/stored/fd_cmds.c        (rĂ©vision 8483)
31 +++ src/stored/fd_cmds.c        (copie de travail)
32 @@ -344,7 +344,7 @@
33     }
34     P(bsr_mutex);
35     bsr_uniq++;
36 -   Mmsg(fname, "%s/%s.%s.%d.bootstrap", me->working_directory, me->hdr.name,
37 +   Mmsg(fname, "%s/%s.%s.%d.sd.bootstrap", me->working_directory, me->hdr.name,
38        jcr->Job, bsr_uniq);
39     V(bsr_mutex);
40     Dmsg1(400, "bootstrap=%s\n", fname);