]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl permit "prune files client=xxx yes"
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 18 Sep 2006 09:07:37 +0000 (09:07 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 18 Sep 2006 09:07:37 +0000 (09:07 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3479 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_select.c

index b12517f4f9baa9acccd09bdf559b4289d6e233cc..ce3f54f0432e0c21a744b938cfa5c9ca4ebd5bcf 100644 (file)
@@ -36,9 +36,14 @@ int confirm_retention(UAContext *ua, utime_t *ret, const char *msg)
    char ed1[100];
    int val;
 
+   int yes_in_arg = find_arg(ua, NT_("yes"));
+
    for ( ;; ) {
        bsendmsg(ua, _("The current %s retention period is: %s\n"),
           msg, edit_utime(*ret, ed1, sizeof(ed1)));
+       if (yes_in_arg != -1) {
+          return 1;
+       }
        if (!get_cmd(ua, _("Continue? (yes/mod/no): "))) {
           return 0;
        }