]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.2.x/2.2.4-replace.patch
Cleanup patches a bit
[bacula/bacula] / bacula / patches / 2.2.x / 2.2.4-replace.patch
1
2  This patch resolves bug #969 where the user can't change the
3  replace option in the restore menu
4
5  Apply to version 2.2.4 (and perhaps older 2.2.x versions) with
6
7  cd <bacula-source>
8  patch -p0 <2.2.4-replace.patch
9  ./configure (your options)
10  make
11  ...
12  make install
13
14 --- src/dird/ua_run.c   (rĂ©vision 5721)
15 +++ src/dird/ua_run.c   (copie de travail)
16 @@ -424,6 +424,7 @@
17           }
18           opt = do_prompt(ua, "", _("Select replace option"), NULL, 0);
19           if (opt >=  0) {
20 +            rc.replace = ReplaceOptions[opt].name;
21              jcr->replace = ReplaceOptions[opt].token;
22           }
23           goto try_again;
24