From: Kern Sibbald Date: Thu, 17 May 2007 11:51:29 +0000 (+0000) Subject: More tweaks to the .mod command X-Git-Tag: Release-7.0.0~6323 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94264ceac305108022fbe4fa5639863ce89e1d06;p=bacula%2Fbacula More tweaks to the .mod command git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4809 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index 65bdb036cf..017226873b 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -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? */