2 This patch fixes the infinite loop when trying to increase the
3 maximum number of volumes in a Pool during the add command.
4 This patch fixes bug #1008.
6 It can be applied to Bacula version 2.2.6 (and probably earlier
10 ./configure <your options>
11 patch -p0 <2.2.6-add.patch
16 Index: src/dird/ua_cmds.c
17 ===================================================================
18 --- src/dird/ua_cmds.c (revision 5901)
19 +++ src/dird/ua_cmds.c (working copy)
22 while (pr.MaxVols > 0 && pr.NumVols >= pr.MaxVols) {
23 ua->warning_msg(_("Pool already has maximum volumes=%d\n"), pr.MaxVols);
25 - if (!get_pint(ua, _("Enter new maximum (zero for unlimited): "))) {
28 - pr.MaxVols = ua->pint32_val;
29 + if (!get_pint(ua, _("Enter new maximum (zero for unlimited): "))) {
32 + pr.MaxVols = ua->pint32_val;