From 8fe468bb73d4cc3715caef0bc32fa05b17f108c4 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 17 Dec 2002 17:24:39 +0000 Subject: [PATCH] Fix mod of replace mode git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@242 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_run.c | 6 +++--- bacula/src/version.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index b89f470199..1c9d24fae5 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -283,14 +283,14 @@ int runcmd(UAContext *ua, char *cmd) } 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]; @@ -530,7 +530,7 @@ JobId: %s\n"), 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; diff --git a/bacula/src/version.h b/bacula/src/version.h index ea7c602686..cce09b1e2a 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -1,8 +1,8 @@ /* */ #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 -- 2.39.5