<commit_before><commit_msg>Add 2.2.4-replace.patch<commit_after>
 This patch resolves bug #969 where the user can't change the
 replace option in the restore menu

 Apply to version 2.2.4 (and perhaps older 2.2.x versions) with

 cd <bacula-source>
 patch -p0 <2.2.4-replace.patch
 ./configure (your options)
 make
 ...
 make install

--- src/dird/ua_run.c   (rvision 5721)
+++ src/dird/ua_run.c   (copie de travail)
@@ -424,6 +424,7 @@
          }
          opt = do_prompt(ua, "", _("Select replace option"), NULL, 0);
          if (opt >=  0) {
+            rc.replace = ReplaceOptions[opt].name;
             jcr->replace = ReplaceOptions[opt].token;
          }
          goto try_again;


{'fraction_non_alphanumeric': 0.13544668587896252, 'fraction_numerical': 0.04178674351585014, 'mean_word_length': 2.3902439024390243, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5544321', 'n_tokens_mistral': 251, 'n_tokens_neox': 229, 'n_words': 65}