From e35007ffca32b70f738b57732aba9047c903eb0b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 29 Jan 2013 20:24:39 +0100 Subject: [PATCH] Fix bug #1955 that OK to run? does not retry on bad response --- bacula/src/dird/ua_run.c | 5 +++++ 1 file changed, 5 insertions(+) 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")); -- 2.39.5