]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_select.c
Retention period updates
[bacula/bacula] / bacula / src / dird / ua_select.c
index 9ad7b6b6e7d370da989d33f571e954478c57f07e..60d8a3739a4390f5c0d13d4e72469e80119021d2 100644 (file)
@@ -483,7 +483,8 @@ int do_prompt(UAContext *ua, char *msg, char *prompt)
       } else {
          sprintf(pmsg, "%s (1-%d): ", msg, ua->num_prompts-1);
       }
-      if (!get_cmd(ua, pmsg) || *ua->cmd == '.') {
+      /* Either a . or an @ will get you out of the loop */
+      if (!get_cmd(ua, pmsg) || *ua->cmd == '.' || *ua->cmd == '@') {
         item = -1;                   /* error */
         break;
       }