]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix mod of replace mode
authorKern Sibbald <kern@sibbald.com>
Tue, 17 Dec 2002 17:24:39 +0000 (17:24 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 17 Dec 2002 17:24:39 +0000 (17:24 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@242 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_run.c
bacula/src/version.h

index b89f4701995988998835d476efa0bd76592ceaee..1c9d24fae5da3a66bf84aaee2b2df4b4f9456dfe 100644 (file)
@@ -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;
index ea7c602686352cfc49cf825200ef149e167c1440..cce09b1e2a5b8e4600ade2856a7233689175d216 100644 (file)
@@ -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