]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix #1233
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 20 Feb 2009 08:24:27 +0000 (08:24 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 20 Feb 2009 08:24:27 +0000 (08:24 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8484 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/testing/fix_1233_bootstrap_name.patch [new file with mode: 0644]

diff --git a/bacula/patches/testing/fix_1233_bootstrap_name.patch b/bacula/patches/testing/fix_1233_bootstrap_name.patch
new file mode 100644 (file)
index 0000000..35d26d8
--- /dev/null
@@ -0,0 +1,40 @@
+ This patch fixes a bootstrap creation file problem when
+ all daemons have the same name. It fixes bug #1233.
+
+ Apply it to trunk with:
+
+ cd <bacula-source>
+ patch -p0 < fix_1233_bootstrap_name.patch
+ ./configure <your options>
+ make
+ ...
+ make install
+
+
+
+Index: src/filed/job.c
+===================================================================
+--- src/filed/job.c    (rĂ©vision 8483)
++++ src/filed/job.c    (copie de travail)
+@@ -1190,7 +1190,7 @@
+    free_bootstrap(jcr);
+    P(bsr_mutex);
+    bsr_uniq++;
+-   Mmsg(fname, "%s/%s.%s.%d.bootstrap", me->working_directory, me->hdr.name,
++   Mmsg(fname, "%s/%s.%s.%d.fd.bootstrap", me->working_directory, me->hdr.name,
+       jcr->Job, bsr_uniq);
+    V(bsr_mutex);
+    Dmsg1(400, "bootstrap=%s\n", fname);
+Index: src/stored/fd_cmds.c
+===================================================================
+--- src/stored/fd_cmds.c       (rĂ©vision 8483)
++++ src/stored/fd_cmds.c       (copie de travail)
+@@ -344,7 +344,7 @@
+    }
+    P(bsr_mutex);
+    bsr_uniq++;
+-   Mmsg(fname, "%s/%s.%s.%d.bootstrap", me->working_directory, me->hdr.name,
++   Mmsg(fname, "%s/%s.%s.%d.sd.bootstrap", me->working_directory, me->hdr.name,
+       jcr->Job, bsr_uniq);
+    V(bsr_mutex);
+    Dmsg1(400, "bootstrap=%s\n", fname);