From d0e58f3faa08aa64176331814f51c6dd7e26f309 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 9 Apr 2014 19:27:38 +0200 Subject: [PATCH] Fix Bacula bug #2046 -- sellist limited to 10000 --- bacula/src/lib/sellist.c | 4 ---- bacula/src/lib/sellist.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/bacula/src/lib/sellist.c b/bacula/src/lib/sellist.c index 3f58de04ec..003fec77cb 100644 --- a/bacula/src/lib/sellist.c +++ b/bacula/src/lib/sellist.c @@ -105,10 +105,6 @@ int64_t sellist::next() errmsg = _("Selection items must be be greater than zero.\n"); goto bail_out; } - if (end > max) { - errmsg = _("Selection item too large.\n"); - goto bail_out; - } if (beg <= end) { return beg++; } diff --git a/bacula/src/lib/sellist.h b/bacula/src/lib/sellist.h index e075191e4f..c9716a0eea 100644 --- a/bacula/src/lib/sellist.h +++ b/bacula/src/lib/sellist.h @@ -37,7 +37,6 @@ class sellist : public SMARTALLOC { char esave, hsave; bool all; int64_t beg, end; - int64_t max; int num_items; char *str; char *expanded; @@ -64,7 +63,6 @@ public: inline sellist::sellist() { num_items = 0; - max = 99999; expanded = NULL; str = NULL; e = NULL; -- 2.39.5