]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.4.2-storename.patch
ebl Backport of the btraceback script that keeps trace file on working dir
[bacula/bacula] / bacula / patches / 2.4.2-storename.patch
1
2   This patch fixes a missing storage name problem, which as far
3   as we can tell never created any problem.
4   Apply the patch to version 2.4.2 (and previous versions) with:
5
6   cd <bacula-source>
7   patch -p0 <2.4.2-storename.patch
8   ./configure <your-options>
9   make
10   ...
11   make install
12
13    
14 Index: src/dird/msgchan.c
15 ===================================================================
16 --- src/dird/msgchan.c  (revision 7507)
17 +++ src/dird/msgchan.c  (working copy)
18 @@ -229,6 +229,7 @@
19        bash_spaces(pool_name);
20        foreach_alist(storage, rstore) {
21           Dmsg1(100, "Rstore=%s\n", storage->name());
22 +         pm_strcpy(store_name, storage->name());
23           bash_spaces(store_name);
24           pm_strcpy(media_type, storage->media_type);
25           bash_spaces(media_type);