]> git.sur5r.net Git - bacula/bacula/commitdiff
More tweaks to the .mod command
authorKern Sibbald <kern@sibbald.com>
Thu, 17 May 2007 11:51:29 +0000 (11:51 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 17 May 2007 11:51:29 +0000 (11:51 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4809 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_run.c

index 65bdb036cfc5efb4cc38695d705e8c5f4d861f7c..017226873bdd5b2ba432def2209ef70f7776b70f 100644 (file)
@@ -211,16 +211,19 @@ try_again:
       if (ReplaceOptions[i].token == jcr->replace) {
          rc.replace = ReplaceOptions[i].name;
       }
+      rc.replace = NULL;
    }
    if (rc.level_name) {
       if (!get_level_from_name(jcr, rc.level_name)) {
          ua->send_msg(_("Level %s not valid.\n"), rc.level_name);
          goto bail_out;
       }
+      rc.level_name = NULL;
    }
    if (rc.jid) {
       /* Note, this is also MigrateJobId */
       jcr->RestoreJobId = str_to_int64(rc.jid);
+      rc.jid = 0;
    }
 
    /* Run without prompting? */