]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.4.x/2.4.1-sd-crash.patch
Rework patches
[bacula/bacula] / bacula / patches / 2.4.x / 2.4.1-sd-crash.patch
1
2  This patch removes an unfortunate piece of debug code that crept into
3  the 2.4.1 release and causes it to purposely, but incorrectly seg fault
4  whenever a volume name error occurs.  Typically this may happen if a
5  non-bacula tape is mounted at startup or at the end of volume during
6  restore.
7
8  Apply the patch with:
9
10  cd <bacula-source>
11  patch -p0 <2.4.1-sd-crash.patch
12  ./configure <your-options>
13  make
14  ...
15  make install
16
17
18
19 Index: src/stored/acquire.c
20 ===================================================================
21 --- src/stored/acquire.c        (revision 7405)
22 +++ src/stored/acquire.c        (working copy)
23 @@ -266,7 +266,6 @@
24              dev->close();                                                          
25           }
26           dev->set_load();
27 -         ASSERT(0);
28           /* Fall through */
29        default:
30           Jmsg1(jcr, M_WARNING, 0, "%s", jcr->errmsg);