]>
Commit | Line | Data |
---|---|---|
f815c0e8 | 1 | |
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. | |
5 | ||
6 | It can be applied to Bacula version 2.2.6 (and probably earlier | |
7 | 2.2.x versions) with: | |
8 | ||
9 | cd <bacula-source> | |
10 | ./configure <your options> | |
11 | patch -p0 <2.2.6-add.patch | |
12 | make | |
13 | ... | |
14 | make install | |
15 | ||
16 | Index: src/dird/ua_cmds.c | |
17 | =================================================================== | |
18 | --- src/dird/ua_cmds.c (revision 5901) | |
19 | +++ src/dird/ua_cmds.c (working copy) | |
20 | @@ -244,12 +244,10 @@ | |
21 | ||
22 | while (pr.MaxVols > 0 && pr.NumVols >= pr.MaxVols) { | |
23 | ua->warning_msg(_("Pool already has maximum volumes=%d\n"), pr.MaxVols); | |
24 | - for (;;) { | |
25 | - if (!get_pint(ua, _("Enter new maximum (zero for unlimited): "))) { | |
26 | - return 1; | |
27 | - } | |
28 | - pr.MaxVols = ua->pint32_val; | |
29 | + if (!get_pint(ua, _("Enter new maximum (zero for unlimited): "))) { | |
30 | + return 1; | |
31 | } | |
32 | + pr.MaxVols = ua->pint32_val; | |
33 | } | |
34 | ||
35 | /* Get media type */ |