} else {
jcr->replace = REPLACE_ALWAYS;
}
+
+try_again:
replace = ReplaceOptions[0].name;
for (i=0; ReplaceOptions[i].name; i++) {
if (ReplaceOptions[i].token == jcr->replace) {
replace = ReplaceOptions[i].name;
}
}
-
-try_again:
Dmsg1(20, "JobType=%c\n", jcr->JobType);
switch (jcr->JobType) {
char ec1[30];
add_prompt(ua, ReplaceOptions[i].name);
}
opt = do_prompt(ua, _("Select replace option"), NULL, 0);
- if (opt <= 0) {
+ if (opt >= 0) {
jcr->replace = ReplaceOptions[opt].token;
}
goto try_again;
/* */
#define VERSION "1.28"
#define VSTRING "1"
-#define DATE "16 December 2002"
-#define LSMDATE "16Dec02"
+#define DATE "17 December 2002"
+#define LSMDATE "17Dec02"
/* Debug flags */
#define DEBUG 1