]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #1955 that OK to run? does not retry on bad response
authorKern Sibbald <kern@sibbald.com>
Tue, 29 Jan 2013 19:24:39 +0000 (20:24 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:07 +0000 (14:51 +0200)
bacula/src/dird/ua_run.c

index f66bdd572e0f9d238ac13d153f761ca63ef940e0..a9941ad1a835cf2a9cc3ef53d37cbecb8ac814a2 100644 (file)
@@ -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"));