From: Kern Sibbald Date: Tue, 29 Jan 2013 19:24:39 +0000 (+0100) Subject: Fix bug #1955 that OK to run? does not retry on bad response X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b9c5e8ad63cc24342d45035fe84faca803603c8;p=bacula%2Fbacula Fix bug #1955 that OK to run? does not retry on bad response --- diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index f66bdd572e..a9941ad1a8 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -197,6 +197,11 @@ start_job: } return JobId; } + if (strncasecmp(ua->cmd, _("no"), strlen(ua->cmd)) == 0) { + goto bail_out; + } + ua->send_msg(_("\nBad response: %s. You must answer yes, mod, or no.\n\n"), ua->cmd); + goto try_again; bail_out: ua->send_msg(_("Job not run.\n"));